how to implemt Login window first appear in wpf using modern ui

Jul 23, 2013 at 10:42 AM
hi community ....

i am new to wpf modern ui. i am making small inventory management system in wpf using modern ui. i want to implement admin and user login on first page. after login a dashboard is showing.

how can i am implement this please help...

thanks in advance..
Coordinator
Jul 25, 2013 at 9:51 PM
See this discussion
Jul 27, 2013 at 10:47 AM
i can't understand discussion that you provide the link discussion is about the hide menu link.

please help for implemt Login window first appear in wpf using modern ui .
Jul 27, 2013 at 11:19 PM
Edited Jul 27, 2013 at 11:19 PM
Create a LoginWindow and modify the start up URI in App.xaml to point to the login window. Do the logic of authenticating the user and once successful, close the login window and create the main application window. Here is a snippet from an app I am working on which does exactly this:
var mainWindow = new MainWindow();
var loginWindow = Window.GetWindow(this);

mainWindow.Show();
if (loginWindow != null) loginWindow.Close();