Click here to Skip to main content
11,927,711 members (37,245 online)
Rate this:
Please Sign up or sign in to vote.
See more: WPF
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 2-May-13 4:56am
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 2 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100