How to enforce min-width/height of a control to be always visible in WPF?
- by MartyIX
Hello,
I've got an application and I would like to know if there's a way how to keep the whole visual element always visible. I thought that minWidth/minHeight will do that but it only changes the minimal size of the element but it doesn't enforces that the whole visual element is visible.
I think what I need is minWidth from WinForms where it works exactly as I need.
Example: Setting minWidth and minHeight for Window works but if I set minWidth for a StackPanel in Window the window can be resized so that the minWidth of StackPanel is ignored (actually the StackPanel has the requested size but it's hidden).
Thank you for any suggestion!