Sergey P

Sergey P

  • NA
  • 15
  • 454

Resize the window to a button size

Aug 31 2021 9:41 AM

i want to be able to resize the whole window to a first button size on that button click. And restore it's original size on next click. I hope that there are some implementations of this kind of functionality, but didn't find it yet. Could someone share an example or describe the plan how to manage it nicely.

I thought that i should dinamicaly create all other subcontrols and remove them from the grid on button click, to be able to shrink window size to first button only. Or maybe i can move all controls under the first button and make them invisible, so that only one that button was shown. Thanks a lot.


Answers (2)