Preview + Edit xaml as if it was placed inside of another xaml or element
Posted: 17 Jan 2026, 15:39
Hi!
I have a generic "Overlay" class in C++ that holds some shared UI elements for all my overlays (Title, close button, Content).
In the game I then load various UI screens/xamls into this Overlays Content container.
In my case the "Content" container of my overlay is a Viewbox.
Now when I edit and preview my UI screens that are being put inside of the overlay they look very different in the Noesis Studio Preview because they are missing the viewport as the parent.
See the second attached screenshot for an example. I have a Grid as a parent for my menu buttons and I place this Grid and its children inside of the Overlays "content" Viewport.
My question would be:
Is there some way to preview UI as if it would be nested inside of another UI? For my purpose I think having an option to wrap my UI inside of a Viewport just for preview would be great. Or ideally I could even give it one of my other UI screens and see it in the context of that screen as if I was viewing it being attached to one of its containers.
Another solution that I think would be even better would be the option to drag a xaml onto a container of another open xaml in the navigator (See first screenshot) and modify it there with the modifications being saved to the source xaml. This would allow me to quickly place my content into the container, preview it there and make adjustments seeing the final picture and then having those changes being applied back to my "source" xaml. Once I'm done I can just remove it from the hierarchy again..
I have a generic "Overlay" class in C++ that holds some shared UI elements for all my overlays (Title, close button, Content).
In the game I then load various UI screens/xamls into this Overlays Content container.
In my case the "Content" container of my overlay is a Viewbox.
Now when I edit and preview my UI screens that are being put inside of the overlay they look very different in the Noesis Studio Preview because they are missing the viewport as the parent.
See the second attached screenshot for an example. I have a Grid as a parent for my menu buttons and I place this Grid and its children inside of the Overlays "content" Viewport.
My question would be:
Is there some way to preview UI as if it would be nested inside of another UI? For my purpose I think having an option to wrap my UI inside of a Viewport just for preview would be great. Or ideally I could even give it one of my other UI screens and see it in the context of that screen as if I was viewing it being attached to one of its containers.
Another solution that I think would be even better would be the option to drag a xaml onto a container of another open xaml in the navigator (See first screenshot) and modify it there with the modifications being saved to the source xaml. This would allow me to quickly place my content into the container, preview it there and make adjustments seeing the final picture and then having those changes being applied back to my "source" xaml. Once I'm done I can just remove it from the hierarchy again..