|
@@ -7,24 +7,24 @@
|
|
mc:Ignorable="d"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="110" d:DesignWidth="215" Name="uc">
|
|
d:DesignHeight="110" d:DesignWidth="215" Name="uc">
|
|
<StackPanel Background="{StaticResource MainColor}">
|
|
<StackPanel Background="{StaticResource MainColor}">
|
|
- <DockPanel Margin="5,10,0,0" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
- <TextBlock Height="30" Foreground="Snow" Text="Height:" TextAlignment="Center" FontSize="16"
|
|
|
|
- HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
- <local:SizeInput IsEnabled="{Binding EditingEnabled, ElementName=uc}" Margin="5,0,0,0"
|
|
|
|
- PreserveAspectRatio="{Binding Path=IsChecked, ElementName=aspectRatio}"
|
|
|
|
- AspectRatioValue="{Binding Path=ChosenWidth, ElementName=uc}"
|
|
|
|
- HorizontalAlignment="Left" Width="150" Height="30"
|
|
|
|
- Size="{Binding ChoosenHeight, ElementName=uc, Mode=TwoWay}" />
|
|
|
|
- </DockPanel>
|
|
|
|
<DockPanel Margin="5,10,0,0" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<DockPanel Margin="5,10,0,0" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<TextBlock Height="30" Foreground="Snow" Text="Width:" TextAlignment="Center" FontSize="16"
|
|
<TextBlock Height="30" Foreground="Snow" Text="Width:" TextAlignment="Center" FontSize="16"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
<local:SizeInput IsEnabled="{Binding EditingEnabled, ElementName=uc}" Width="150" Height="30"
|
|
<local:SizeInput IsEnabled="{Binding EditingEnabled, ElementName=uc}" Width="150" Height="30"
|
|
PreserveAspectRatio="{Binding Path=IsChecked, ElementName=aspectRatio}"
|
|
PreserveAspectRatio="{Binding Path=IsChecked, ElementName=aspectRatio}"
|
|
- AspectRatioValue="{Binding Path=ChoosenHeight, ElementName=uc}"
|
|
|
|
|
|
+ AspectRatioValue="{Binding Path=ChosenHeight, ElementName=uc}"
|
|
HorizontalAlignment="Left" Margin="10,0,0,0"
|
|
HorizontalAlignment="Left" Margin="10,0,0,0"
|
|
Size="{Binding Path=ChosenWidth, ElementName=uc, Mode=TwoWay}" />
|
|
Size="{Binding Path=ChosenWidth, ElementName=uc, Mode=TwoWay}" />
|
|
</DockPanel>
|
|
</DockPanel>
|
|
|
|
+ <DockPanel Margin="5,10,0,0" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
+ <TextBlock Height="30" Foreground="Snow" Text="Height:" TextAlignment="Center" FontSize="16"
|
|
|
|
+ HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
+ <local:SizeInput IsEnabled="{Binding EditingEnabled, ElementName=uc}" Margin="5,0,0,0"
|
|
|
|
+ PreserveAspectRatio="{Binding Path=IsChecked, ElementName=aspectRatio}"
|
|
|
|
+ AspectRatioValue="{Binding Path=ChosenWidth, ElementName=uc}"
|
|
|
|
+ HorizontalAlignment="Left" Width="150" Height="30"
|
|
|
|
+ Size="{Binding ChosenHeight, ElementName=uc, Mode=TwoWay}" />
|
|
|
|
+ </DockPanel>
|
|
<CheckBox Name="aspectRatio" Content="Preserve aspect ratio" Foreground="White" HorizontalAlignment="Left"
|
|
<CheckBox Name="aspectRatio" Content="Preserve aspect ratio" Foreground="White" HorizontalAlignment="Left"
|
|
IsChecked="True" Margin="50,10,0,0" />
|
|
IsChecked="True" Margin="50,10,0,0" />
|
|
</StackPanel>
|
|
</StackPanel>
|