Sunday 28 July 2013

Set default Window / Page - WPF Application

The default page to be loaded in a WPF application is configured in App.xaml file.
By default the project will have App.xaml file as below:

<Application x:Class="Login_WPF.App" xmlns="" xmlns:x="" StartupUri="MainWindow.xaml">
Here MainWindow.xaml is the default window set by visual studio.
If you want to change the startup window of the WPF app to MyWindow.xaml, update with this xaml file name as below.
<Application x:Class="Login_WPF.App" xmlns=""
xmlns:x="" StartupUri="MyWindow.xaml">

No comments:

Post a Comment