0

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.

Quincy
  • 1,710
  • 14
  • 20

2 Answers2

1

I consulted your issue with our team, and as Steven Wick mentioned:

It is currently not possible to display WPF and UWP UI/controls within the same window. A Desktop Bridge app can contain both WPF and UWP components, but their UI will need to reside in separate windows.

It seems like the UI betwwen WPF and UWP can't be mixed stuff, they may in different technologies.

Sunteen Wu
  • 10,509
  • 1
  • 10
  • 21
  • Thanks. I am pretty sure they announced that it will be possible in future. But not sure I understood that /build announcement. – Quincy Oct 20 '17 at 19:44
  • I think it was announced yesterday this is now possible. Again another build announcement but idk if today we can do it – Quincy May 09 '18 at 06:25
1

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.

Dominik
  • 26
  • 2