From the course: Windows Presentation Foundation: 1 Build Dramatic Desktop Applications

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Change Windows properties

Change Windows properties

From the course: Windows Presentation Foundation: 1 Build Dramatic Desktop Applications

Start my 1-month free trial

Change Windows properties

- [Instructor] You can set some properties on the window class itself; this controls things like the size of the window, and the start position, and other attributes like that. Before I actually make those changes, let's look at what this application looks like when it's running. So I'll click on the Start button in Visual Studio. WPF is a desktop application, and it's running in the window, so it's going to have all the window characteristics you're familiar with, like a title bar, like the Minimize and Close buttons, and the Maximize button. Because I'm running in Windows 10, it's picking up the colors and the shapes and the look of the buttons from Windows 10. Course I can maximize this, and then restore it down. And then I can also size this, and you know in Windows if I size it and then maximize it and then restore it, it returns back to the original size. What I'd like to do is change the initial size of the window, so it's a little bit bigger, and I'd also like to make sure…

Contents