Updating an Uno application to WinUI 3.0
Uno Platform supports authoring apps using WinUI 3's API. This article details the changes required when migrating an application from the UWP API set to the WinUI 3 API set.
Read more about WinUI 3 and Uno Platform.
Migrating an app to WinUI 3.0
- NuGet updates:
Uno.UI
becomesUno.WinUI
Uno.UI.DevServer
becomesUno.WinUI.DevServer
Uno.UI.Lottie
becomesUno.WinUI.Lottie
Uno.UI.Foldable
becomesUno.WinUI.Foldable
- String replacements:
Windows.UI.Xaml
becomesMicrosoft.UI.Xaml
Windows.UI.Composition
becomesMicrosoft.UI.Composition
- Update
App.xaml.cs
:
API Changes
Changed or removed controls
MapControl
is missingMediaPlayerElement
is missingWebView
is nowWebView2
For a full list of unavailable controls and visual features, as well as timelines for restoration in some cases, consult the WinUI 3 Feature Roadmap.
WinRT API changes for Desktop apps
Some WinRT APIs are unsupported in WinUI 3 Desktop apps, notably CoreDispatcher
, CoreWindow
, and ApplicationView
. Consult this guide for supported alternatives to those APIs. DispatcherQueue
, the replacement for CoreDispatcher
in WinUI 3, is supported by Uno Platform.
Creating an application from the templates
Instructions are available here for creating a new Uno Platform application targeting WinUI 3.