Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Screen Navigation Best Practices in a borderless transparent background window

$
0
0

I have a WPF application that has several different screen scenes defined as separate grids all on a single Window that is borderless and transparent background.  There is a Home and Back button at the top of the application.  Right now I am setting the grid visibility and opacity and using a TransformationState to slide on/off the grid.   The problem is I want the home button to always go back to the default grid but I don't know what grid is currently being displayed.  I also want to be able to go back to the previous screen but I don't know what screen that was if it wasn't the Home screen?  In Sketchflow there is an action called NavigateToScreenAction or NavigateBackAction that can be executed in a click event in XAML.  I'd like to do something that simple within the XAML of my WPF application without writing any code behind to maintain the current screen and the stack.

What is the best practice for what I want to do?

Should I create separate <Page></Page> .XAML files for each scene?  

Should I create separate Windows?

Is the layered Grids in a single Windows  a good way to go?


Jeff Davis




Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>