How to enforce min-width/height of a control to be always visible in WPF?
Posted
by MartyIX
on Stack Overflow
See other posts from Stack Overflow
or by MartyIX
Published on 2010-04-08T20:10:40Z
Indexed on
2010/04/08
20:13 UTC
Read the original article
Hit count: 355
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!
© Stack Overflow or respective owner