Skip to content

Win32 Xaml Island load component from library #312

Answered by DarranRowe
nbkalex asked this question in General
Discussion options

You must be logged in to vote

It mostly works the same way.
The biggest differences are that you need to create a dispatcher queue (Microsoft.UI.Dispatching.DispatcherQueue via Microsoft.UI.Dispatching.DispatcherQueueController) on the thread which has the message pump first.
The islands use the window id (Microsoft.UI.WindowId) instead of the interop interfaces. This means that to initialise the DesktopWindowXamlSource instance, you would first use the GetWindowIdFromWindow function (C++) or Win32Interop.GetWindowIdFromWindow static method (C#) and then call DesktopWindowXamlSource.Initialize using this WindowId, instead of obtaining the IDesktopWindowXamlSourceNative interface. This interface no longer exists in the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nbkalex
Comment options

Answer selected by nbkalex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants