microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.33k stars 675 forks source link

Is it possible to use WinRT XAML controls in WinUI 3? #6845

Closed IVVOVVI closed 1 year ago

IVVOVVI commented 2 years ago

I know the XAML Islands, but these existing docs are all about Win32, WinForm and WPF. How to use custom and 3rd party WinRT (UWP) XAML controls in WinUI3?

ojhad commented 2 years ago

Components targeting the UWP platform (System Xaml) like Windows Community Toolkit are not compatible with WinUI3 by default. Windows Community Toolkit and many of our other partners have produced compatible versions.

WinUI3 does not support islands to WinUI2.

@MikeHillberg to double check

ojhad commented 2 years ago

@marb2000 FYI

IVVOVVI commented 2 years ago

Thanks for your reply. I have two problems here.

  1. I've made a lot of custom controls over the past decade, based on C++/CX and PPL. The Windows App SDK only supports C++/WinRT, so rewriting them will take a lot of work. And I also have some 3rd party controls, not WinUI2. Is there a way to keep using these controls? Or will it be supported in the future?
  2. It seems that WinUI3 Composition can't be used with MediaPlayerSurface? So currently the only way to use MediaPlayer is CopyFrameToVideoSurface?

By the way. What's the difference between Windows App SDK + WinUI3 and Desktop Bridge + XAML Island? Is there any doc comparing these two ways?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.