microsoft / WindowsAppSDK-Samples

Feature samples for the Windows App SDK
MIT License
712 stars 224 forks source link

Proposal: More Sample Code for WinUI3 desktop app, not UWP. #277

Open ifgotmoney opened 1 year ago

ifgotmoney commented 1 year ago

Which sample are you requesting a feature to be added to? Could we have more examples for using WinUI3 with C++/WinRT for Desktop APPs? Currently most of them are wrote for UWP, not for desktop apps. It's very difficult for beginners to start in WinUI3 with C++/WinRT for desktop APPs.

For the sample "LowLatencyInput", I have tried 1 month to convert the sample code to Desktop APP version but always failure in debug. a lot of errors such as "read access violation". no idea what wrong with the conversion.

Describe the feature Provide more examples for using DirectX with SwapChainPanel in C++/WinRT for Desktop APPs. Provide a version of the sample code "LowLatencyInput" in C++/WinRT for Desktop APPs, not for UWP APPs

castorix commented 1 year ago

Most of samples like WinUI Gallery are in C# (a lot easier to write than C++/WinRT (while I use C++/Win32 since 90's)) There are also some MS samples in C++ in Samples