Search code examples
c#wpfwindowscale

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?


Solution

  • "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.