Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
I would like to know how a we navigate between different in wpf using a single frame in MainWindow without using Navigation Window.

I am stuck with a problem:
I have a Login page("LoginView.xaml",which is the default page displayed inside the MainWindow frame on StartUp), using which the user shall enter the username and password.
Now, if the user is the Superuser, I want a page to be displayed that is specific to that user.
Similarly if the user is a NormalUser a different page has to be displayed.

Although, I have managed to display the Login page on startup within the MainWiondow frame, I couldn't displayed the page after Login.
I searched the internet but could not find a proper solution. Most of the solutions I saw were using Navigation Window (which I would like to avoid) and were web based applications.
I have been trying to fix this problem for the past two days, but still couldnt fix it. Since I am new to WPF, Can anyone suggest a solution to this problem?
Posted
Comments
stibee 3-May-13 20:42pm    
Are some fields same for use admin and normal user? Are for the normal user some fields hidden? If yes, are there a lot of different fields?
Maybe an approach is to do this with a trigger?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900