Skip to content

Commit ca8df8a

Browse files
docs(maui): highlight Avalonia template support (#10532)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 5b952c4 commit ca8df8a

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

release-notes/11.0/preview/preview7/dotnetmaui.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# .NET MAUI in .NET 11 Preview 7 - Release Notes
22

33
.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:
66

77
- [Cross-platform passkey authentication](#cross-platform-passkey-authentication)
88
- [XAML Incremental Hot Reload](#xaml-incremental-hot-reload)
99
- [Shell route templates](#shell-route-templates)
10+
- [Create MAUI apps with Avalonia support](#create-maui-apps-with-avalonia-support)
1011
- [AOT-safe RelativeSource bindings](#aot-safe-relativesource-bindings)
1112
- [Third-party platform backends](#third-party-platform-backends)
1213
- [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.
8485
See [Shell
8586
navigation](https://learn.microsoft.com/dotnet/maui/fundamentals/shell/navigation?view=net-maui-11.0).
8687

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+
87109
## AOT-safe RelativeSource bindings
88110

89111
The XAML source generator now compiles `{RelativeSource AncestorType=...}`

0 commit comments

Comments
 (0)