What I want to do:
I want to add UI elements to an AppWindow in my WinUI3 desktop application using the Windows App SDK and C++.
The problem I am having:
I followed the documentation to create a new window for my desktop application with the AppWindow class.
Show multiple views with AppWindow
However, I am having difficulty associating UI elements with the new window. Unlike with the Windows.UI.Xaml.Hosting.ElementCompositionPreview class, the Microsoft.UI.Xaml.Hosting.ElementCompositionPreview class does not have a SetAppWindowContent() method. Therefore, I cannot associate UIContents with the newly created appWindow. I am hoping for a simplified explanation of how to set an element on a newly created window. I would also like to know if it is possible to set a Window element other than the MainWindow or a Page element.