Click here to Skip to main content
Rate this: bad
good
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
Comments
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 Sergey Alexandrovich Kryukov 269
1 OriginalGriff 240
2 CPallini 195
3 Maciej Los 177
4 BillWoodruff 173
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 2 May 2013
Copyright © CodeProject, 1999-2014
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