11.1.0-beta1

Avalonia 是 dotnet 的跨平台 UI 框架,提供灵活的样式系统,支持 Windows、macOS、Linux、iOS、Android 和 WebAssembly 等多种平台。 Avalonia 已经成熟并已做好生产准备,已被 Schneider Electric、Unity、JetBrains 和 GitHub 等公司使用。

Full Changelog: https://github.com/AvaloniaUI/Avalonia/commits/11.1.0-beta1

完整变更日志:https://github.com/AvaloniaUI/Avalonia/commits/11.1.0-beta1
Full API Diff: https://gist.github.com/maxkatz6/a7df42607cc7187b94e2e693ccf15f6d
完整 API 差异:https://gist.github.com/maxkatz6/a7df42607cc7187b94e2e693ccf15f6d

Please install latest dotnet templates.
请安装最新的 dotnet 模板。
Most of new features are still pending updated documentation.
大多数新功能仍在等待更新文档。
You can follow progress on this issue - AvaloniaUI/avalonia-docs#384.
您可以关注此问题的进展 - AvaloniaUI/avalonia-docs#384。

New features 新功能

  • Binding markup extension was refactored, and now supports UpdateSourceTrigger!
    绑定标记扩展已重构,现在支持 UpdateSourceTrigger!
  • Tizen backend with Tizen TV support.
    Tizen 后端,支持 Tizen TV。
  • XAML warnings support, starting with Obsolete and TemplatePart warnings. Configurable via csproj and editorconfig. XAML error reporting is now also improved, not being limited by a single error at a time.
    XAML 警告支持,从 Obsolete 和 TemplatePart 警告开始。可通过 csproj 和 editorconfig 配置。 XAML 错误报告现在也得到了改进,不再受一次单个错误的限制。
  • New top-level and application services: ILauncher, IInputPane, IActivatableLifetime.
    新的顶级和应用程序服务:ILauncher、IInputPane、IActivatableLifetime。
  • XY focus with arrow keys and remote DPad is now available.
    现在可以使用箭头键和远程 DPad 进行 XY 对焦。
  • Global exception handling via Dispatcher UnhandledException and UnhandledExceptionFilter.
    通过 Dispatcher UnhandledException 和 UnhandledExceptionFilter 进行全局异常处理。

New and extended controls:
新的和扩展的控件:

  • HyperlinkButton is now available.
    超链接按钮现已可用。
  • MenuItem now supports ToggleType property, including CheckBox and Radio types with radio groups.
    MenuItem 现在支持 ToggleType 属性,包括带有单选组的 CheckBox 和 Radio 类型。
  • Border now includes a new BackgroundSizing property, allowing customizing transparent border brushes rendering.
    边框现在包含一个新的 BackgroundSizing 属性,允许自定义透明边框画笔渲染。
  • Many interactive controls were updated to be usable with TV remote control, where only DPad buttons and Space (Select) + Escape (Back) are available.
    许多交互式控件已更新为可与电视遥控器一起使用,其中仅 DPad 按钮和 Space(选择)+ Escape(返回)可用。
  • NumericUpDown and AutoCompleteBox: MaxLength, InnerLeftContent, and InnerRightContent.
    NumericUpDown 和 AutoCompleteBox:MaxLength、InnerLeftContent 和 InnerRightContent。
  • WindowNotificationManager was refactored and now can be embedded at any level of the controls tree, not being hardcoded to the top level.
    WindowNotificationManager 进行了重构,现在可以嵌入到控件树的任何级别,而不是硬编码到顶层。
  • RadialGradientBrush now has separated RadiusX and RadiusY properties that allow absolute and relative values. Old Radius property is now obsolete.
    RadialGradientBrush 现在具有独立的 RadiusX 和 RadiusY 属性,允许绝对值和相对值。旧的 Radius 属性现已过时。

New platform features 新平台功能

Windows 视窗

  • DirectComposition rendering mode is now supported for older Windows versions (8.1+)
    旧版 Windows 版本 (8.1+) 现在支持 DirectComposition 渲染模式
  • It's now possible to add WndProc and WindowStyles callbacks via Win32Properties API.
    现在可以通过 Win32Properties API 添加 WndProc 和 WindowStyles 回调。

macOS 苹果系统

  • TrayIcon now includes MacOSProperties.IsTemplateIcon attached property, allowing monochrome icons consistent with macOS system icons
    TrayIcon 现在包含 MacOSProperties.IsTemplateIcon 附加属性,允许单色图标与 macOS 系统图标一致

Linux

  • It's now possible to set NetWmWindowType and WmClass on any window via X11Properties attached properties.
    现在可以通过 X11Properties 附加属性在任何窗口上设置 NetWmWindowType 和 WmClass 。
  • Avalonia now respects XGD accent color spec.
    Avalonia 现在遵循 XGD 强调色规范。

Browser 浏览器

  • StaticWebAssets SDK is now supported. It brings support for building in .NET Brotli compression and caching. To use this SDK, please recreate the browser project from the new template using the 11.1.0-beta1 version.
    StaticWebAssets 现在支持 SDK。它支持构建 .NET Brotli 压缩和缓存。要使用此 SDK,请使用 11.1.0-beta1 版本从新模板重新创建浏览器项目。
  • WebGL2 is now enabled by default.
    WebGL2 现在默认启用。

iOS

  • Metal rendering mode was implemented and now can be enabled via iOSPlatformOptions.
    Metal 渲染模式已实现,现在可以通过 iOSPlatformOptions 启用。
  • Physical keyboard and mouse input handling now work.
    物理键盘和鼠标输入处理现在可以使用。
  • tvOS support was added. 添加了 tvOS 支持。

Android

  • Android TV support was added
    添加了 Android TV 支持

Breaking Changes 重大变化

  • iOS and Android backends now require .NET 8 or newer, as per .NET mobile workloads support timelines.
    根据 .NET 移动工作负载支持时间表,iOS 和 Android 后端现在需要 .NET 8 或更高版本。
  • Browser backend now also requires .NET 8 or newer, but also has changes to its project structure. We recommend using newer Avalonia templates as a reference, but a migration guide specifically for the browser is also planned.
    浏览器后端现在也需要 .NET 8 或更高版本,但其项目结构也发生了变化。我们建议使用较新的 Avalonia 模板作为参考,但还计划专门针对浏览器的迁移指南。

原文来源:https://github.com/AvaloniaUI/Avalonia/releases/tag/11.1.0-beta1

Avalonia 11.1.0-beta1 发布的更多相关文章

  1. JuiceFS v1.0.0 Beta1 发布,加强数据安全能力

    在 JuiceFS 开源一周年之际,我们迎来了首个里程碑版本 JuiceFS v1.0.0 Beta1,并将开源许可从 AGPL v3 修改为 Apache License 2.0. JuiceFS ...

  2. kbmmw 5.0 beta1 发布

    经过大半年的等待,kbmmw 的新版终于来了.经过近5年的打磨, kbmmw 的版本号升级到5了. kbmMW is a portable, highly scalable, high end app ...

  3. julia,集Python、C++、R为一体!Julia 1.0重磅发布, MIT发布史上最强科学计算编程语言?创始人独家解答11个问题

    这个编程语言的新版本之所以受到整个人工智能界的关注,最主要的原因正是其将 C 语言的速度.Ruby 的灵活.Python 的通用性前所未有地结合在一起,支持并行处理,易于学习和使用,尤其适合科学和工程 ...

  4. Oracle 11.2.0.4单实例打PSU,OJVM PSU补丁快速参考

    写在前面: 1.Oracel打每个补丁的操作有时存在差异,所以不管多熟悉,都应该在打任何补丁之前阅读新补丁中附带的readme. 2.Oracle每季度都会更新一个最新的PSU,本文最新指的是当前最新 ...

  5. DotNetBar for Windows Forms 11.8.0.8冰河之刃重打包版

    关于 DotNetBar for Windows Forms 11.8.0.8_冰河之刃重打包版 基于 官方原版的安装包 + http://www.cnblogs.com/tracky 提供的补丁DL ...

  6. 【AngularJS】 2.0 版本发布

    [AngularJS] 2.0 版本发布 w5cValidator[AngularJS] 2.0 版本发布   w5cValidator 插件基于angular原有的表单验证,在原有的基础上扩展了一些 ...

  7. Iveely Search Engine 0.4.0 的发布

    千呼万唤始出来,Iveely Search Engine 0.4.0 的发布   经过无数个夜晚的奋战,以及无数个夜晚的失眠,Iveely Search Engine 0.4.0 终于熬出来了,这其中 ...

  8. WordPress版微信小程序3.0版发布

    距离WordPress版微信小程序上一个版本的发布过去了一个月了.在此间,我的工作有些变化,加上正在开发新版本,目前开源版的完善和升级稍稍有些滞后. 虽然这个版本是3.0版,期间有个过渡的2.8版,不 ...

  9. (转)Spring Boot 2 (九):【重磅】Spring Boot 2.1.0 权威发布

    http://www.ityouknow.com/springboot/2018/11/03/spring-boot-2.1.html 如果这两天登录 https://start.spring.io/ ...

  10. 【重磅】Spring Boot 2.1.0 权威发布

    如果这两天登录 https://start.spring.io/ 就会发现,Spring Boot 默认版本已经升到了 2.1.0.这是因为 Spring Boot 刚刚发布了 2.1.0 版本,我们 ...

随机推荐

  1. CF1295

    A 用计算器式显示数字,可以显示 \(n\) 段.可以显示的最大数字是多少? 如果用了一个需要至少四段的数字,一定不如把这个替换成两个 \(1\) 好. 如果一共可以用偶数个,一定是全部 \(1\). ...

  2. .NET 团队公布.NET 9开发目标 并发布.NET9的首个预览版

    在一篇博文中我们对 .NET 9 的愿景[1]: .NET团队概述了.NET 9的开发目标和最终愿景,涵盖两大重点领域:云原生和智能应用程序开发.它在继.NET 8之后,继续强化对云原生应用和性能的支 ...

  3. MFC-ODBC API动态连接配置数据库

    一.ODBC管理器介绍 在Window中,ODBC数据远管理器有6个标签:用户DSN.系统DSN.文件DSN.驱动程序.跟踪.连接池,通常情况下,使用用户DSN或者系统DSN,这里主要了解用户DSN和 ...

  4. Shell 特殊符号(变量)用法小结

    Shell | 特殊变量   $n 基本语法: $n (功能描述:n 为数字,$0 代表该脚本名称,$1-$9 代表第一到第九个参数,十以上的参数,十以上的参数需要用大括号包含,如${10}) 例如: ...

  5. letcode-K个一组翻转链表(栈思想 + 递归)

    题目:输入一个有序链表,每K个一组进行反转. 输入:1, 2, 3, 4, 5, 5, 6, 8, 10 K = 3 输出:3, 2, 1, 5, 5, 4, 10, 8, 6 题解 反转,那么最先想 ...

  6. 【Android逆向】IDA动态调试JNI_OnLoad 和 .init_array

    由于 JNI_OnLoad 和 .init_array 执行时间很早,so一加载到内存中就执行了,所以动态调试步骤会稍微要麻烦一些 1. 进入手机, 执行./android_server (如果是64 ...

  7. 学习go语言编程之流程控制

    Golang支持如下4种流程控制语句: 条件语句:if,else和else if 选择语句:switch,case和select 循环语句:for,range 跳转语句:goto 条件语句 示例代码: ...

  8. Docker进阶之02-Swarm集群入门实践

    Docker集群概述 Docker集群有2种方案: 1.在Docker Engine 1.12之前的集群模式被称为经典集群,这是通过API代理系统实现的集群,目前已经不再维护. 2.自Docker E ...

  9. Q查询的高级用法

    示例:如前端需要通过下拉框选择需要通过什么过滤字段来查询输入的关键字,后端如何使用Q查询过滤包含输入的关键字呢? def customers(request): search_field = requ ...

  10. django中的一些装饰器用法

    1.require_http_methods() 1.要求视图只接受特定的请求方法 2.该装饰器允许传递多个请求方法参数,以列表的形式,请求方法名要大写 from django.views.decor ...