Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I maximize a WPF page when the application starts?

Tags:

c#

wpf

xaml

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!

like image 879
MarianoDiego Avatar asked Oct 17 '14 12:10

MarianoDiego


1 Answers

In your Xaml window definition simply define:

WindowStartupLocation="CenterScreen" WindowState="Maximized"
like image 195
Hardgraf Avatar answered Sep 18 '22 18:09

Hardgraf