|
@@ -15,17 +15,22 @@
|
|
|
<DockPanel Background="{DynamicResource ThemeBackgroundBrush}">
|
|
|
<Button DockPanel.Dock="Bottom" HorizontalAlignment="Center" IsDefault="True"
|
|
|
ui1:Translator.Key="EXPORT" Command="{Binding ExportCommand, ElementName=saveFilePopup}" />
|
|
|
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Stretch" Orientation="Vertical"
|
|
|
+ <StackPanel HorizontalAlignment="Center" VerticalAlignment="Stretch" Orientation="Vertical"
|
|
|
Margin="0,15,0,0">
|
|
|
<TabControl SelectedIndex="{Binding SelectedExportIndex, ElementName=saveFilePopup}">
|
|
|
<TabControl.Items>
|
|
|
<TabItem IsSelected="True" ui1:Translator.Key="EXPORT_IMAGE_HEADER">
|
|
|
-
|
|
|
+
|
|
|
</TabItem>
|
|
|
<TabItem ui1:Translator.Key="EXPORT_ANIMATION_HEADER">
|
|
|
-
|
|
|
+
|
|
|
+ </TabItem>
|
|
|
+ <TabItem ui1:Translator.Key="EXPORT_SPRITESHEET_HEADER">
|
|
|
+ <StackPanel>
|
|
|
+ <input:NumberInput Min="0" />
|
|
|
+ <input:NumberInput Min="0" />
|
|
|
+ </StackPanel>
|
|
|
</TabItem>
|
|
|
- <TabItem ui1:Translator.Key="EXPORT_SPRITESHEET_HEADER"/>
|
|
|
</TabControl.Items>
|
|
|
</TabControl>
|
|
|
<Border Margin="15, 30" Padding="10"
|
|
@@ -34,19 +39,19 @@
|
|
|
<Grid MinHeight="205" MinWidth="400">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*" />
|
|
|
- <ColumnDefinition Width="160"/>
|
|
|
+ <ColumnDefinition Width="160" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
<RowDefinition Height="Auto" />
|
|
|
</Grid.RowDefinitions>
|
|
|
<input:SizePicker Grid.Row="0"
|
|
|
- x:Name="sizePicker"
|
|
|
- IsSizeUnitSelectionVisible="True"
|
|
|
- VerticalAlignment="Top"
|
|
|
- ChosenHeight="{Binding Path=SaveHeight, Mode=TwoWay, ElementName=saveFilePopup}"
|
|
|
- ChosenWidth="{Binding Path=SaveWidth, Mode=TwoWay, ElementName=saveFilePopup}" />
|
|
|
+ x:Name="sizePicker"
|
|
|
+ IsSizeUnitSelectionVisible="True"
|
|
|
+ VerticalAlignment="Top"
|
|
|
+ ChosenHeight="{Binding Path=SaveHeight, Mode=TwoWay, ElementName=saveFilePopup}"
|
|
|
+ ChosenWidth="{Binding Path=SaveWidth, Mode=TwoWay, ElementName=saveFilePopup}" />
|
|
|
<TextBlock Grid.Row="1" Margin="5, 0" VerticalAlignment="Bottom" Classes="hyperlink"
|
|
|
TextWrapping="Wrap"
|
|
|
Width="220" TextAlignment="Center"
|
|
@@ -61,22 +66,25 @@
|
|
|
</Grid>
|
|
|
<Grid Grid.Column="1">
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="30"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="30" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
</Grid.RowDefinitions>
|
|
|
-
|
|
|
- <TextBlock Text="Export Preview"/>
|
|
|
- <indicators:LoadingIndicator Grid.Row="1" IsVisible="{Binding IsGeneratingPreview, ElementName=saveFilePopup}"
|
|
|
- Margin="0, 10, 0, 0"/>
|
|
|
- <Border Grid.Row="1" BorderThickness="1" Height="200" Width="150" IsVisible="{Binding !IsGeneratingPreview, ElementName=saveFilePopup}">
|
|
|
+
|
|
|
+ <TextBlock Text="Export Preview" />
|
|
|
+ <indicators:LoadingIndicator Grid.Row="1"
|
|
|
+ IsVisible="{Binding IsGeneratingPreview, ElementName=saveFilePopup}"
|
|
|
+ Margin="0, 10, 0, 0" />
|
|
|
+ <Border Grid.Row="1" BorderThickness="1" Height="200" Width="150"
|
|
|
+ IsVisible="{Binding !IsGeneratingPreview, ElementName=saveFilePopup}">
|
|
|
<Border RenderOptions.BitmapInterpolationMode="None">
|
|
|
<visuals:SurfaceControl x:Name="surfaceControl"
|
|
|
Surface="{Binding ExportPreview, ElementName=saveFilePopup}"
|
|
|
- Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
+ Stretch="Uniform" HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
RenderOptions.BitmapInterpolationMode="None">
|
|
|
<visuals:SurfaceControl.Background>
|
|
|
- <ImageBrush Source="/Images/CheckerTile.png"
|
|
|
- TileMode="Tile" DestinationRect="0, 0, 25, 25"/>
|
|
|
+ <ImageBrush Source="/Images/CheckerTile.png"
|
|
|
+ TileMode="Tile" DestinationRect="0, 0, 25, 25" />
|
|
|
</visuals:SurfaceControl.Background>
|
|
|
</visuals:SurfaceControl>
|
|
|
</Border>
|