Add C++ examples
Some samples have code behind examples in addition to XAML but all of them are only for C#.
Will be fine...it's almost imposible right now to find documentation, samples or real world code using C++/WinRT and WinUI 3
This project is awesome! Lots of cool controls! Would be great if you can add C++ examples! I would very much like to learn from some C++ examples so that I can develop Windows desktop applications using C++ with all these cool controls!
Thank you for the suggestions. I've taken note of your feedback and I'll check to see what is possible 🙂
C++ examples would also ease the pain of XAML C++ development experience, without VS tooling support since C++/CX got deprecated.
We currently don't have C++ samples anywhere in the app. At that point, it would be worth discussing a full C++ version of the app. That is not in scope at this time.
Maybe there should be some official communication that WinUI is becoming only about C#, and C++/WinRT is for low level components.
We currently don't have C++ samples anywhere in the app. At that point, it would be worth discussing a full C++ version of the app. That is not in scope at this time.
You don't really need to write the application in C++ to provide translated samples inside the app along with the C# example.
We currently don't have C++ samples anywhere in the app. At that point, it would be worth discussing a full C++ version of the app. That is not in scope at this time.
You don't really need to write the application in C++ to provide translated samples inside the app along with the C# example.
It is more or less if the sample code should also be verified and actually work. The only other option would be to manually paste the sample code in some C++ project and see if it works but the effort of doing that for every sample doesn't seem that much lower than just writing a C++ app containing all samples.
There are already several C++/WinRT samples for Windows App SDK. An example is applying Mica, which the WinUI 3 Gallery app only has code example for C# while the docs has for C++ as well: https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/system-backdrop-controller#example-use-mica-in-a-windows-appsdkwinui-3-app (switch to C++/WinRT in the page first).
Sure there are some C++/WinRT samples for the WinAppSDK, after all, nobody claimed is impossible. However the WinUI Gallery is closing in on 250 samples. Writing C++ sample code for all of them in a manner that is maintainable and sustainable is (almost) the same effort as rewriting the app in C++.
No, I do not agree. You can still provide some sample code for C++, just like some docs pages.
@gregwoo-microsoft said we are welcome to provide C++ sample code through PR. Let's contribute, C++ developers!
@gregwoo-microsoft said we are welcome to provide C++ sample code through PR. Let's contribute, C++ developers!
After the way they dealt with C++/CX tooling, dropping us into C++/WinNT clunky tooling, despite the money that we pay in licenses for Windows, Visual Studio and everything else?
Surely they can get some scraps from Activision/Blizzard deal to pay a couple of interns to write such examples in their beloved C++/WinRT.