Click here to Skip to main content
11,795,848 members (82,905 online)
Rate this: bad
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 3:56am
stibee at 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
0 Maciej Los 410
1 Abhinav S 368
2 OriginalGriff 300
3 Sergey Alexandrovich Kryukov 266
4 KrunalRohit 249
0 OriginalGriff 1,852
1 Maciej Los 1,465
2 KrunalRohit 1,300
3 CPallini 840
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web01 | 2.8.151002.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