Search code examples
desktop-bridge

In WPF control - display a UWP app


https://learn.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-extend

This explains a process of showing a UWP app in a separate window than the WPF app. Is it possible to display them in the same window? Eg. display the UWP app inside a WPF control. Or even better : display a UWP control inside a WPF control.


Solution

  • Things have changed and Windows now supports hosting UWP controls inside Win32 applications such as WPF or Windows Forms.

    You can find documentation on XAML islands and the hosting process on https://learn.microsoft.com/en-us/windows/uwp/xaml-platform/using-the-xaml-hosting-api. The article also references sample apps that should help you get started.