|
@@ -4,10 +4,13 @@
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
- xmlns:local="clr-namespace:PixiEditor.Views" xmlns:behaviors="clr-namespace:PixiEditor.Helpers.Behaviours"
|
|
|
|
|
|
+ xmlns:local="clr-namespace:PixiEditor.Views"
|
|
|
|
+ xmlns:behaviors="clr-namespace:PixiEditor.Helpers.Behaviours"
|
|
|
|
+ xmlns:dial="clr-namespace:PixiEditor.Views.Dialogs"
|
|
mc:Ignorable="d" Name="window"
|
|
mc:Ignorable="d" Name="window"
|
|
Title="ResizeDocumentPopup" ShowInTaskbar="False" WindowStartupLocation="CenterScreen"
|
|
Title="ResizeDocumentPopup" ShowInTaskbar="False" WindowStartupLocation="CenterScreen"
|
|
- Height="300" Width="400" WindowStyle="None">
|
|
|
|
|
|
+ Height="250" Width="300" MaxHeight="250" MaxWidth="300"
|
|
|
|
+ WindowStyle="None">
|
|
|
|
|
|
<WindowChrome.WindowChrome>
|
|
<WindowChrome.WindowChrome>
|
|
<WindowChrome CaptionHeight="32" GlassFrameThickness="0.1"
|
|
<WindowChrome CaptionHeight="32" GlassFrameThickness="0.1"
|
|
@@ -19,31 +22,22 @@
|
|
Executed="CommandBinding_Executed_Close" />
|
|
Executed="CommandBinding_Executed_Close" />
|
|
</Window.CommandBindings>
|
|
</Window.CommandBindings>
|
|
|
|
|
|
- <Grid Background="{StaticResource AccentColor}" Focusable="True">
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
- <RowDefinition Height="35" />
|
|
|
|
- <RowDefinition />
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
|
|
+ <DockPanel Background="{StaticResource AccentColor}" Focusable="True">
|
|
<i:Interaction.Behaviors>
|
|
<i:Interaction.Behaviors>
|
|
<behaviors:ClearFocusOnClickBehavior/>
|
|
<behaviors:ClearFocusOnClickBehavior/>
|
|
</i:Interaction.Behaviors>
|
|
</i:Interaction.Behaviors>
|
|
|
|
|
|
- <DockPanel Grid.Row="0" Background="{StaticResource MainColor}">
|
|
|
|
- <Button DockPanel.Dock="Right" 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 document" />
|
|
|
|
- <StackPanel HorizontalAlignment="Center" Margin="0,50,0,0" Background="{StaticResource MainColor}"
|
|
|
|
- VerticalAlignment="Top" Grid.Row="1" Width="350" Height="150">
|
|
|
|
- <local:SizePicker Margin="0,20"
|
|
|
|
- x:Name="sizePicker"
|
|
|
|
- PreserveAspectRatio="True"
|
|
|
|
- ChosenHeight="{Binding Path=NewHeight, Mode=TwoWay, ElementName=window}"
|
|
|
|
- ChosenWidth="{Binding Path=NewWidth, Mode=TwoWay, ElementName=window}" />
|
|
|
|
- </StackPanel>
|
|
|
|
- <Button Grid.Row="1" Height="30" Width="60" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="10"
|
|
|
|
- Style="{StaticResource DarkRoundButton}" Content="OK" Click="Button_Click" IsDefault="True" />
|
|
|
|
- </Grid>
|
|
|
|
|
|
+ <dial:DialogTitleBar DockPanel.Dock="Top"
|
|
|
|
+ TitleText="Resize image" CloseCommand="{x:Static SystemCommands.CloseWindowCommand}"/>
|
|
|
|
+
|
|
|
|
+ <Button DockPanel.Dock="Bottom" Width="70" HorizontalAlignment="Center" Margin="15"
|
|
|
|
+ Style="{StaticResource DarkRoundButton}" Content="Resize" Click="Button_Click" IsDefault="True" />
|
|
|
|
+
|
|
|
|
+ <local:SizePicker HorizontalAlignment="Center" Width="230" Height="125" Margin="0,30,0,0"
|
|
|
|
+ x:Name="sizePicker"
|
|
|
|
+ PreserveAspectRatio="True"
|
|
|
|
+ ChosenHeight="{Binding Path=NewHeight, Mode=TwoWay, ElementName=window}"
|
|
|
|
+ ChosenWidth="{Binding Path=NewWidth, Mode=TwoWay, ElementName=window}" />
|
|
|
|
+
|
|
|
|
+ </DockPanel>
|
|
</Window>
|
|
</Window>
|