I have a simple WPF application with two xaml Pages. I'd like the app opening with the maximum size of the screen. I've found only answers about WPF Windows, but for Pages there is not a "WindowState" property.
Thanks a lot!
I have a simple WPF application with two xaml Pages. I'd like the app opening with the maximum size of the screen. I've found only answers about WPF Windows, but for Pages there is not a "WindowState" property.
Thanks a lot!
In your Xaml window definition simply define:
WindowStartupLocation="CenterScreen" WindowState="Maximized"
You could set the Width
and Height
property manually according to your current Screen Resolution from here
System.Windows.SystemParameters.PrimaryScreenWidth;
System.Windows.SystemParameters.PrimaryScreenHeight;