CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.
https://aka.ms/windowsappsdk
Other
383 stars 89 forks source link

Add a SwapChainPanel sample for WPF #227

Closed mgnslndh closed 4 years ago

mgnslndh commented 4 years ago

Describe the problem this feature would solve

Make it easier for WPF developers to make use of the SwapChainPanel control.

Describe the solution

Add a sample of how to use the SwapChainPanel control in a WPF app.

ghost commented 4 years ago

Thanks for submitting a new feature request! I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future!

jdsterli commented 4 years ago

Although there is currently no sample showing how to use UWP's SwapChainPanel in WPF, I am curious if the current preferred way to access it is via WindowsXamlHost, since I do not see it in Microsoft.Toolkit.Wpf.UI.Controls namespace.

Update: It was more complicated than I thought. I found a working example of how to use SwapChainPanel in XAML Islands for WPF. https://github.com/marb2000/XamlIslands/tree/master/1903_Samples/WPF_Core3_App x86 works but for x64 you will need to update versions and modify c++ directory output to match the x86 to get it working.

ghost commented 4 years ago

This issue has been marked as "needs attention 👋" due to no activity for 7 days. Please triage the issue so the fix can be established.

ghost commented 4 years ago

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost commented 4 years ago

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

marb2000 commented 4 years ago

The latest official samples using the SwapChainPanel in UWP is here.