minimum size width and height (#11380)

This commit is contained in:
Davide Giacometti
2021-05-21 15:58:57 +02:00
committed by GitHub
parent b84e9da005
commit 4a65aa3d0e
2 changed files with 4 additions and 2 deletions

View File

@@ -123,7 +123,7 @@
</ComboBox.ItemTemplate> </ComboBox.ItemTemplate>
</ComboBox> </ComboBox>
<ui:NumberBox SpinButtonPlacementMode="Compact" <ui:NumberBox SpinButtonPlacementMode="Compact"
Minimum="1" Minimum="0"
Width="102" Width="102"
Style="{StaticResource DisabledWhenUnselectedTextBoxStyle}" Style="{StaticResource DisabledWhenUnselectedTextBoxStyle}"
AutomationProperties.Name="{x:Static p:Resources.Width}" AutomationProperties.Name="{x:Static p:Resources.Width}"
@@ -146,7 +146,7 @@
<ui:NumberBox Style="{StaticResource DisabledWhenUnselectedTextBoxStyle}" <ui:NumberBox Style="{StaticResource DisabledWhenUnselectedTextBoxStyle}"
SpinButtonPlacementMode="Compact" SpinButtonPlacementMode="Compact"
Minimum="1" Minimum="0"
Width="102" Width="102"
AutomationProperties.Name="{x:Static p:Resources.Height}" AutomationProperties.Name="{x:Static p:Resources.Height}"
Visibility="{Binding ShowHeight,Converter={StaticResource BoolValueConverter}}"> Visibility="{Binding ShowHeight,Converter={StaticResource BoolValueConverter}}">

View File

@@ -153,6 +153,7 @@
<muxc:NumberBox Name="ImageResizer_Width_Property" <muxc:NumberBox Name="ImageResizer_Width_Property"
x:Uid="ImageResizer_Width_Property" x:Uid="ImageResizer_Width_Property"
Value="{x:Bind Path=Width, Mode=TwoWay}" Value="{x:Bind Path=Width, Mode=TwoWay}"
Minimum="0"
MinWidth="68" MinWidth="68"
SpinButtonPlacementMode="Compact" SpinButtonPlacementMode="Compact"
VerticalAlignment="Center" VerticalAlignment="Center"
@@ -172,6 +173,7 @@
x:Uid="ImageResizer_Height_Property" x:Uid="ImageResizer_Height_Property"
Value="{x:Bind Path=Height, Mode=TwoWay}" Value="{x:Bind Path=Height, Mode=TwoWay}"
MinWidth="68" MinWidth="68"
Minimum="0"
VerticalAlignment="Center" VerticalAlignment="Center"
SpinButtonPlacementMode="Compact" SpinButtonPlacementMode="Compact"
Opacity="{x:Bind Path=ExtraBoxOpacity, Mode=OneWay}" Opacity="{x:Bind Path=ExtraBoxOpacity, Mode=OneWay}"