|
@@ -8,7 +8,7 @@
|
|
|
xmlns:behaviors="clr-namespace:PixiEditor.Helpers.Behaviours"
|
|
|
mc:Ignorable="d" Name="window"
|
|
|
Title="ResizeCanvasPopup" ShowInTaskbar="False" WindowStartupLocation="CenterScreen"
|
|
|
- Height="390" Width="400" WindowStyle="None">
|
|
|
+ Height="350" Width="300" WindowStyle="None">
|
|
|
|
|
|
<WindowChrome.WindowChrome>
|
|
|
<WindowChrome CaptionHeight="32" GlassFrameThickness="0.1"
|
|
@@ -29,27 +29,36 @@
|
|
|
<behaviors:ClearFocusOnClickBehavior/>
|
|
|
</i:Interaction.Behaviors>
|
|
|
|
|
|
- <DockPanel Grid.Row="0" Background="{StaticResource MainColor}">
|
|
|
- <Button DockPanel.Dock="Right" HorizontalAlignment="Right" Style="{StaticResource CloseButtonStyle}"
|
|
|
+ <Grid Grid.Row="0" Background="{StaticResource MainColor}">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Button Grid.Column="1" HorizontalAlignment="Right" Style="{StaticResource CloseButtonStyle}"
|
|
|
WindowChrome.IsHitTestVisibleInChrome="True" ToolTip="Close"
|
|
|
Command="{x:Static SystemCommands.CloseWindowCommand}" />
|
|
|
- </DockPanel>
|
|
|
- <Label Grid.Row="1" VerticalAlignment="Top" Foreground="White" FontSize="24" HorizontalAlignment="Center"
|
|
|
- Content="Resize Canvas" />
|
|
|
- <StackPanel HorizontalAlignment="Center" Margin="0,50,0,0" Background="{StaticResource MainColor}"
|
|
|
- VerticalAlignment="Top" Grid.Row="1" Width="300" Height="250">
|
|
|
- <local:SizePicker Margin="0,10,0,0" Width="300" Height="110"
|
|
|
+ <TextBlock TextAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Center" Foreground="White" FontSize="15" Margin="5,0,0,0" Grid.Column="0" Grid.ColumnSpan="2">
|
|
|
+ Resize Canvas
|
|
|
+ </TextBlock>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <StackPanel HorizontalAlignment="Center" Margin="0,30,0,0" Background="{StaticResource MainColor}"
|
|
|
+ VerticalAlignment="Top" Grid.Row="1" Width="230" Height="225">
|
|
|
+ <local:SizePicker Margin="0,20,0,0" Width="200"
|
|
|
x:Name="sizePicker"
|
|
|
PreserveAspectRatio="False"
|
|
|
ChosenHeight="{Binding NewHeight, Mode=TwoWay, ElementName=window}"
|
|
|
ChosenWidth="{Binding NewWidth, Mode=TwoWay, ElementName=window}" />
|
|
|
- <Separator Margin="10,20,10,0" Background="{StaticResource AccentColor}" Height="1" />
|
|
|
- <Label Content="Anchor point:" Foreground="White" Margin="10,5,0,0" HorizontalAlignment="Left"
|
|
|
- FontSize="16" />
|
|
|
- <local:AnchorPointPicker AnchorPoint="{Binding Path=SelectedAnchorPoint, Mode=TwoWay, ElementName=window}"
|
|
|
- Width="78" Margin="45,-25,0,0" Height="78" />
|
|
|
+ <Separator Margin="10,5,10,0" Background="{StaticResource AccentColor}" Height="1" />
|
|
|
+ <DockPanel>
|
|
|
+ <Label Content="Anchor point:" Foreground="White" Margin="25,5,0,0" HorizontalAlignment="Left"
|
|
|
+ FontSize="12" />
|
|
|
+ <local:AnchorPointPicker AnchorPoint="{Binding Path=SelectedAnchorPoint, Mode=TwoWay, ElementName=window}"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Width="78" Margin="0,10,30,0" Height="78" />
|
|
|
+ </DockPanel>
|
|
|
</StackPanel>
|
|
|
- <Button Grid.Row="1" Height="30" Width="60" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="10"
|
|
|
+ <Button Grid.Row="1" Height="28" Width="70" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="16"
|
|
|
Style="{StaticResource DarkRoundButton}" Content="OK" Click="Button_Click" IsDefault="True" />
|
|
|
</Grid>
|
|
|
</Window>
|