This project is read-only.

Login Page

Jun 20, 2014 at 8:24 AM
I'm new to MUI and XAML app development. I have a question to ask all of you. I created an app, and there should be a login page whenever they run the app.

How can I do this?

Thanks,
Seang
Jun 24, 2014 at 2:18 AM
Edited Jun 24, 2014 at 2:18 AM
At App.xaml,

<Application .... Startup="Application_Startup">

At App.xaml.cs,

private void Application_Startup(object sender, StartupEventArgs e)
{
// Create main window first before showing login.
App.Current.MainWindow = new MainWindow();

var login = new LoginView();
login.ShowDialog();

// Do something what you need like as checking authentication and then...
App.Current.MainWindow.Show();
}
Marked as answer by seangkim on 6/26/2014 at 8:14 PM
Jun 27, 2014 at 4:15 AM
Thanks for you help!
Aug 15, 2014 at 1:50 PM
Hello,

In this case what type is LoginView? Is this a regular Window class I create or it uses something from the moder ui library?

Thannk you,

Igor.