Repository navigation
Description
Summary
This issue tracks the removal of the WPF target (Uno.WinUI.Skia.Wpf / Uno.WinUI.Runtime.Skia.Wpf) and the WPF Islands feature (Uno.WinUI.XamlHost.Skia.Wpf) from Uno Platform.
This is an intentional breaking change. The WPF-based Skia desktop runtime is being superseded by the native Skia Desktop runtimes (X11, macOS, Win32, Linux FrameBuffer), which have become the recommended way to run Uno applications on desktop platforms.
Motivation
- The native Skia Desktop runtimes (
Uno.WinUI.Runtime.Skia.Win32,.X11,.MacOS,.Linux.FrameBuffer) now provide superior performance, smaller deployment footprint, and broader cross-platform reach than the WPF-based variant. - Maintaining the WPF runtime adds significant complexity to the build, packaging and CI pipeline for a target that is no longer recommended for new applications.
- The WPF Islands feature (
UnoXamlHost) only ever worked on Windows and added a substantial maintenance burden for a relatively small consumer base.
Scope
Removed
Uno.WinUI.Skia.WpfandUno.WinUI.Runtime.Skia.WpfNuGet packages and underlying projects.Uno.WinUI.XamlHost.Skia.Wpf(WPF IslandsUnoXamlHostcontrol) NuGet package and project.- WPF-based sample and template projects (
UnoIslands.Skia.Wpf,UnoIslandsSamplesApp.Skia.Wpf,*.Skia.WPFsolution-template heads). RuntimeTestPlatforms.SkiaWpfandUnoTarget.SkiaWpfenum values.- WPF-specific build properties (
NetPreviousWpf,NetCurrentWpf,NetWpfPreviousAndCurrent), CI stages, solution-filter entries and labeler rules. - WPF-only MSBuild workaround targets (
_UnoRemoveTransitiveWPFDependency,_UnoRemoveRuntimeFrameworkInRuntimeConfigurationFiles). doc/articles/guides/uno-islands.md(the WPF Islands guide).
Kept
- The cross-platform
Uno.UI.XamlHostbase library and its non-WPF samples (UnoIslands.Skia,UnoIslandsSamplesApp.Skia). doc/articles/wpf-migration.mdanddoc/articles/wpf-winui-equivalents.md— these help WPF developers adopt Uno/WinUI and remain valuable independently of Uno's WPF target._UnoWebView2RemoveWpfMSBuild target — kept defensively becauseMicrosoft.Web.WebView2still ships a WPF variant that can leak in via transitive NuGet references.
Migration guidance
Apps currently targeting Uno.WinUI.Skia.Wpf should migrate to one of the native Skia Desktop runtimes:
- Windows:
Uno.WinUI.Runtime.Skia.Win32 - Linux:
Uno.WinUI.Runtime.Skia.X11orUno.WinUI.Runtime.Skia.Linux.FrameBuffer - macOS:
Uno.WinUI.Runtime.Skia.MacOS
The recommended path is to use the unified net*-desktop TFM with the Uno SDK, which automatically pulls in all desktop runtimes.
Apps using UnoXamlHost to embed Uno controls inside an existing WPF app must rehost into a standalone Uno application using one of the native Skia desktop runtimes.
Activity
[-]Drop support for the WPF target and WPF Islands feature[/-][+]Drop support for the WPF targets[/+]feat!: Drop WPF target and WPF Islands support
feat!: Drop WPF target and WPF Islands support
feat!: Drop WPF target and WPF Islands support
feat!: Drop WPF target and WPF Islands support
docs: Drop removed GTK/WPF Skia backends from unsupported list
[-]Drop support for the WPF targets[/-][+]♥️ Drop support for the WPF targets[/+]docs: Remove dropped Skia GTK/WPF heads from getting-started