简体   繁体   中英

In WPF how do I Resize main windows during the runtime

I want my main WPF window during the runtime, when there is not enough space for my control, to resize itself. I could create a window which takes a maximum amount of space on the screen and make it transparent, but are there any other ways to do it?

"I want my main WPF window during the runtime of my application when there is not enough space for my control"

What does this mean?

You should have a look at SizeToContent property on Window.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM