Hello, i want to use some native elements for the UI/Control (mostly buttons, textboxes etc). Thats ok, i can add the elements to the xaml and use it, but i have 2 different unity scene where the ui is different. I tried to copy the default mainpage and navigate to that, but the unity is not rendering on the second page - can someone help me to find a solution? Or this cant be done?
This can not be done. Unity can only be initialized once on a particular screen. You have to replace your XAML controls on the same page.
So (basically), i need to make a SwapChainPanel global variable to the App.xaml.cs and use that? I know, that this is not the correct unity usage and i can build with one page also (change which ui is visible based on the scene loaded) but this would be awesome in a few different way
Unfortunately i can't make it work, its not drawing onto the second swapchainpanel. Anyway, thanks for your help, i will try it later