|
1 | 1 | # .NET MAUI in .NET 11 Preview 7 - Release Notes |
2 | 2 |
|
3 | 3 | .NET 11 Preview 7 adds cross-platform passkey authentication, XAML |
4 | | -Incremental Hot Reload, Shell route templates, and faster device development |
5 | | -workflows: |
| 4 | +Incremental Hot Reload, Shell route templates, Avalonia support for the MAUI |
| 5 | +app template, and faster device development workflows: |
6 | 6 |
|
7 | 7 | - [Cross-platform passkey authentication](#cross-platform-passkey-authentication) |
8 | 8 | - [XAML Incremental Hot Reload](#xaml-incremental-hot-reload) |
9 | 9 | - [Shell route templates](#shell-route-templates) |
| 10 | +- [Create MAUI apps with Avalonia support](#create-maui-apps-with-avalonia-support) |
10 | 11 | - [AOT-safe RelativeSource bindings](#aot-safe-relativesource-bindings) |
11 | 12 | - [Third-party platform backends](#third-party-platform-backends) |
12 | 13 | - [NavigationPage and TabbedPage adopt handlers on Apple platforms](#navigationpage-and-tabbedpage-adopt-handlers-on-apple-platforms) |
@@ -84,6 +85,27 @@ navigation; relative navigation is not yet supported. |
84 | 85 | See [Shell |
85 | 86 | navigation](https://learn.microsoft.com/dotnet/maui/fundamentals/shell/navigation?view=net-maui-11.0). |
86 | 87 |
|
| 88 | +## Create MAUI apps with Avalonia support |
| 89 | + |
| 90 | +The MAUI app template now supports `--with-avalonia`, which adds |
| 91 | +`Avalonia.Controls.Maui`, `Avalonia.Controls.Maui.Desktop`, and a |
| 92 | +platform-neutral `net11.0` desktop target to the generated project. The desktop |
| 93 | +target renders with Avalonia on Windows, macOS, and Linux. The Android, iOS, |
| 94 | +Mac Catalyst, and Windows heads keep native MAUI controls as the default and |
| 95 | +enable Avalonia embedding, so apps can combine native and Avalonia UI |
| 96 | +([dotnet/maui #35950](https://github.com/dotnet/maui/pull/35950)). |
| 97 | + |
| 98 | +```console |
| 99 | +dotnet new maui --with-avalonia |
| 100 | +``` |
| 101 | + |
| 102 | +The Avalonia option is ignored when `--sample-content` is enabled. |
| 103 | + |
| 104 | +<https://github.com/user-attachments/assets/2bc14441-7feb-4cd4-83ca-5558a15390d2> |
| 105 | + |
| 106 | +Thank you [@drasticactions](https://github.com/drasticactions) for this |
| 107 | +contribution! |
| 108 | + |
87 | 109 | ## AOT-safe RelativeSource bindings |
88 | 110 |
|
89 | 111 | The XAML source generator now compiles `{RelativeSource AncestorType=...}` |
|
0 commit comments