Navigate between screens in WPF
Posted
by Greg R
on Stack Overflow
See other posts from Stack Overflow
or by Greg R
Published on 2010-03-26T12:56:20Z
Indexed on
2010/03/26
13:23 UTC
Read the original article
Hit count: 512
This should be a very basic design question, but for some reason it doesn't seem to be well documented (maybe due to its simplicity?).
If I'm building a dashboard application in WPF that brig up different CRM tasks and I want to navigate between screens, is this the best way to do this, or is there a better way?
So for example I have Log In Screen -> Main Menu Screen -> Screen to one of different utilities
var orderManagerWindow = new MyXamlView();
var loginWindow = Application.Current.MainWindow;
orderManagerWindow.Left = loginWindow.Left;
orderManagerWindow.Top = loginWindow.Top;
Application.Current.MainWindow = orderManagerWindow;
orderManagerWindow.Show();
loginWindow.Close();
I would really appreciate help and suggestions!
© Stack Overflow or respective owner