WPF MahApps NumericUpDown control does not respect the Width property when the value is less than 60.
To define a Width less that 60 you have to also define the MinWidth and MaxWidth to less than 60.
<Controls:NumericUpDown Grid.Row="0" Width="50" MinWidth="50" MaxWidth="50" Value="{Binding AxisYUpperValue, Mode=TwoWay}" Minimum ="0" Maximum ="200" Interval="0.1" StringFormat="F2" HasDecimals="True" HideUpDownButtons="True" VerticalAlignment="Center" HorizontalAlignment="Center" InterceptManualEnter="True" Culture="{Binding LocalCulture, Mode=OneWay}"/>
Setting the Width greater than 60 is obayed without needing to set MaxWidth or MinWidth properties.
Comments
Post a Comment