Proportional min width in WPF
I find it very difficult to understand, WPF allows me to set proportional width, but not minWidth! I mean:
<ColumnDefinition Width="126*"/> // OK
<ColumnDefinition Width="126*" MinWidth="126*"/> // NOT ALLOWED
How would you set the min / max width / height?
+3
Hamed
source
to share
2 answers
Because it doesn't make sense
Width = "126 *" MinWidth = "126 *" the
same as Width = "126 *"
Width = "126 *" MinWidth = "125 *"
same as Width = "126 *"
Width = "126 *" MinWidth = "127 *"
is the same as Width = "127 *"
+2
paparazzo
source
to share
One solution would be to add an attached property. This can control the grid for changes and maintain the minimum width accordingly.
0
James lucas
source
to share