Repository navigation
·
63 commits
to main
since this release
WPFDevelopers.Avalonia 12.1.2
中文发布说明
本次更新升级至 Avalonia 12.1.2,支持 .NET 8、.NET 9 和 .NET 10,新增多款实用控件,并完善主题样式与 Demo 展示。
新增控件
- Carousel — 轮播控件:支持自动播放、切换箭头、导航圆点、数据绑定及点击事件。
- Window — 自定义窗口:Windows 下提供 WD 标题栏与窗口按钮,支持标准、加高及自定义标题栏;其他平台使用原生窗口。
- SwitchButton — 双状态内容切换按钮:根据选中状态显示不同内容,支持文字、图标、图片及组合布局。
- GestureUnlock — 手势解锁:提供九宫格图案输入、完成事件及成功/错误状态反馈。
- OtpBox — 验证码输入框:支持自定义位数、自动跳转、键盘导航、粘贴及校验状态反馈。
- Timeline / TimelineItem — 时间线:支持水平、垂直、交错布局、倒序显示、自定义节点及加载状态。
- ColorPicker — 颜色选择器:支持内嵌和弹出模式、RGB/HSL/HEX 输入及颜色双向绑定。
- ColorPickerButton — 颜色选择按钮:提供按钮式颜色选择入口;新代码推荐使用 ColorPicker 的弹出模式。
- SplitButton — 分裂按钮:组合主按钮与下拉选项,支持点击、选项切换及多种主题。
- MultiSelectComboBox — 多选下拉框:支持搜索、多选、全选、标签展示及自定义选项模板。
- Segmented / SegmentedItem — 分段选择器:支持水平和垂直单选布局及选中指示器动画。
- Pagination — 分页控件:支持页码导航、总数显示、页大小切换、快速跳转及简洁模式。
- Step / StepItem — 步骤条:支持水平和垂直布局,通过当前步骤索引展示流程进度。
- Drawer — 抽屉控件:支持四个方向展开、自定义抽屉内容、遮罩关闭及开合动画。
改进
- 优化 DataGrid 列头调整宽度时的主题色提示。
- 优化 ScrollBar 的细滚动条、悬停展开及拖动反馈。
- 完善基础控件样式与主题切换体验。
- 更新 Demo 导航、控件示例与首页展示。
本版本面向 Avalonia 12,请确保应用使用兼容的 Avalonia 12 依赖。
English Release Notes
This release upgrades to Avalonia 12.1.2, supports .NET 8, .NET 9, and .NET 10, and introduces new controls alongside theme and demo improvements.
New Controls
- Carousel: Automatic playback, navigation arrows and dots, data binding, and item-click handling.
- Window: WD title bars and window buttons on Windows, with standard, tall, and custom title-bar layouts; native windows on other platforms.
- SwitchButton: Displays different content for checked and unchecked states, supporting text, icons, images, and composite layouts.
- GestureUnlock: Nine-node pattern input with completion notifications and success/error feedback.
- OtpBox: Configurable code length, automatic focus advance, keyboard navigation, paste support, and validation feedback.
- Timeline / TimelineItem: Horizontal, vertical, and alternating layouts, reversed order, customizable nodes, and loading indicators.
- ColorPicker: Inline and popup modes, RGB/HSL/HEX input, and two-way color binding.
- ColorPickerButton: A button-based color picker retained for compatibility; ColorPicker’s popup mode is recommended for new code.
- SplitButton: A primary action combined with dropdown options, selection notifications, and multiple themes.
- MultiSelectComboBox: Search, multiple selection, select-all, tag display, and custom item templates.
- Segmented / SegmentedItem: Horizontal and vertical single-selection layouts with an animated selection indicator.
- Pagination: Page navigation, total-count display, page-size selection, quick jump, and simple mode.
- Step / StepItem: Horizontal and vertical step indicators driven by the current step index.
- Drawer: Four opening directions, customizable drawer content, overlay dismissal, and open/close animations.
Improvements
- Added theme-colored resize indicators to DataGrid column headers.
- Refined slim scrollbars, hover expansion, and dragging feedback.
- Improved basic control styles and theme switching.
- Updated demo navigation, control examples, and the home page.
This release targets Avalonia 12. Applications must use compatible Avalonia 12 dependencies.