|
@@ -11,7 +11,8 @@
|
|
xmlns:userControls="clr-namespace:PixiEditor.Views.UserControls"
|
|
xmlns:userControls="clr-namespace:PixiEditor.Views.UserControls"
|
|
xmlns:helpers="clr-namespace:PixiEditor.Helpers"
|
|
xmlns:helpers="clr-namespace:PixiEditor.Helpers"
|
|
mc:Ignorable="d" BorderBrush="Black" BorderThickness="1"
|
|
mc:Ignorable="d" BorderBrush="Black" BorderThickness="1"
|
|
- Title="SaveFilePopup" WindowStyle="None" Height="330" Width="310" MinHeight="330" MinWidth="310"
|
|
|
|
|
|
+ Title="SaveFilePopup" WindowStyle="None" MinHeight="330" MinWidth="310" Width="310"
|
|
|
|
+ SizeToContent="Height"
|
|
WindowStartupLocation="CenterScreen" Name="saveFilePopup"
|
|
WindowStartupLocation="CenterScreen" Name="saveFilePopup"
|
|
FlowDirection="{helpers:Localization FlowDirection}">
|
|
FlowDirection="{helpers:Localization FlowDirection}">
|
|
<WindowChrome.WindowChrome>
|
|
<WindowChrome.WindowChrome>
|
|
@@ -33,20 +34,28 @@
|
|
<dial:DialogTitleBar DockPanel.Dock="Top"
|
|
<dial:DialogTitleBar DockPanel.Dock="Top"
|
|
TitleText="EXPORT_IMAGE" CloseCommand="{x:Static SystemCommands.CloseWindowCommand}"/>
|
|
TitleText="EXPORT_IMAGE" CloseCommand="{x:Static SystemCommands.CloseWindowCommand}"/>
|
|
|
|
|
|
- <Button DockPanel.Dock="Bottom" Width="70" HorizontalAlignment="Center" IsDefault="True"
|
|
|
|
|
|
+ <Button DockPanel.Dock="Bottom" HorizontalAlignment="Center" IsDefault="True"
|
|
Margin="15" Style="{StaticResource DarkRoundButton}" local:Translator.Key="EXPORT" Command="{Binding OkCommand}"
|
|
Margin="15" Style="{StaticResource DarkRoundButton}" local:Translator.Key="EXPORT" Command="{Binding OkCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
|
|
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
|
|
|
|
|
|
- <Grid HorizontalAlignment="Center" Margin="0,30,0,0" Background="{StaticResource MainColor}"
|
|
|
|
- VerticalAlignment="Top" Grid.Row="1" Width="240" Height="205">
|
|
|
|
- <userControls:SizePicker Width="240" Height="180" Margin="0,0,0,25"
|
|
|
|
- x:Name="sizePicker"
|
|
|
|
- SizeUnitSelectionVisibility="Visible"
|
|
|
|
- ChosenHeight="{Binding Path=SaveHeight, Mode=TwoWay, ElementName=saveFilePopup}"
|
|
|
|
- ChosenWidth="{Binding Path=SaveWidth, Mode=TwoWay, ElementName=saveFilePopup}" />
|
|
|
|
- <TextBlock Foreground="Snow" Margin="10,5" TextWrapping="Wrap" VerticalAlignment="Bottom" TextAlignment="Center"
|
|
|
|
|
|
+ <Border HorizontalAlignment="Center" Margin="15,30,15,0" Background="{StaticResource MainColor}"
|
|
|
|
+ VerticalAlignment="Stretch" CornerRadius="10">
|
|
|
|
+ <Grid MinHeight="205" MinWidth="240">
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition/>
|
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <userControls:SizePicker Margin="0,15,0,0"
|
|
|
|
+ x:Name="sizePicker"
|
|
|
|
+ SizeUnitSelectionVisibility="Visible"
|
|
|
|
+ VerticalAlignment="Top"
|
|
|
|
+ ChosenHeight="{Binding Path=SaveHeight, Mode=TwoWay, ElementName=saveFilePopup}"
|
|
|
|
+ ChosenWidth="{Binding Path=SaveWidth, Mode=TwoWay, ElementName=saveFilePopup}" />
|
|
|
|
+ <TextBlock Grid.Row="1" Foreground="Snow" Margin="5,0,5,10" TextWrapping="Wrap" VerticalAlignment="Bottom" TextAlignment="Center"
|
|
|
|
+ Width="200"
|
|
d:Text="If you want to share the image, try 400% for the best clarity" Text="{Binding SizeHint, ElementName=saveFilePopup}"/>
|
|
d:Text="If you want to share the image, try 400% for the best clarity" Text="{Binding SizeHint, ElementName=saveFilePopup}"/>
|
|
- </Grid>
|
|
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
|
|
|
|
</DockPanel>
|
|
</DockPanel>
|
|
</Window>
|
|
</Window>
|