|
@@ -6,11 +6,14 @@
|
|
|
xmlns:local="clr-namespace:PixiEditor.Views"
|
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
|
xmlns:vm="clr-namespace:PixiEditor.ViewModels"
|
|
|
- xmlns:helpers="clr-namespace:PixiEditor.Helpers.Behaviours"
|
|
|
+ xmlns:helpers="clr-namespace:PixiEditor.Helpers.Behaviours" xmlns:helpers1="clr-namespace:PixiEditor.Helpers"
|
|
|
mc:Ignorable="d"
|
|
|
- Title="SaveFilePopup" Height="250" Width="400" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Name="saveFilePopup">
|
|
|
+ Title="SaveFilePopup" Height="300" Width="400" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Name="saveFilePopup">
|
|
|
+ <Window.Resources>
|
|
|
+ <helpers1:ToolSizeToIntConverter x:Key="ToolSizeToIntConverter"/>
|
|
|
+ </Window.Resources>
|
|
|
<Border BorderBrush="Black" BorderThickness="1">
|
|
|
- <Grid Background="#303030">
|
|
|
+ <Grid Background="#404040">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="20*"/>
|
|
|
<RowDefinition Height="229*"/>
|
|
@@ -21,25 +24,28 @@
|
|
|
<i:InvokeCommandAction Command="{Binding DragMoveCommand}"/>
|
|
|
</i:EventTrigger>
|
|
|
</i:Interaction.Triggers>
|
|
|
- <Button Width="20" Height="20" VerticalAlignment="Top" HorizontalAlignment="Right" BorderThickness="0" Command="{Binding CloseButtonCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}">
|
|
|
+ <Button Width="20" Height="20" Style="{StaticResource ImageButtonStyle}" Cursor="Hand" VerticalAlignment="Top" HorizontalAlignment="Right" BorderThickness="0"
|
|
|
+ Command="{Binding CloseButtonCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}">
|
|
|
<Button.Background>
|
|
|
<ImageBrush ImageSource="/Images/Cross.png" Stretch="Uniform"/>
|
|
|
</Button.Background>
|
|
|
</Button>
|
|
|
</Grid>
|
|
|
<TextBlock Grid.Row="1" Height="30" Width="120" Foreground="Snow" VerticalAlignment="Top" HorizontalAlignment="Center" Text="File settings" TextAlignment="Center" FontSize="20"/>
|
|
|
- <DockPanel Grid.Row="1" Height="70" Width="320" Margin="0,0,0,100" Background="#2D2D2D">
|
|
|
+ <DockPanel Grid.Row="1" Height="70" Width="320" Margin="0,10,0,100" Background="#303030">
|
|
|
<TextBlock Foreground="Snow" Width="40" Height="40" HorizontalAlignment="Left" Margin="50,0,0,0" Text="Width:" TextAlignment="Center" Padding="0,11.5,0,0"/>
|
|
|
- <TextBox Style="{StaticResource DarkTextBoxStyle}" Width="70" Height="20" HorizontalAlignment="Left" Margin="5,0,0,0" Text="{Binding ElementName=saveFilePopup, Path=SaveWidth, Mode=TwoWay}">
|
|
|
+ <TextBox Style="{StaticResource DarkTextBoxStyle}" Width="70" Height="20" HorizontalAlignment="Left" Margin="5,0,0,0"
|
|
|
+ Text="{Binding ElementName=saveFilePopup, Converter={StaticResource ToolSizeToIntConverter}, Path=SaveWidth, Mode=TwoWay}">
|
|
|
<i:Interaction.Behaviors>
|
|
|
- <helpers:AllowableCharactersTextBoxBehavior RegularExpression="^[0-9./-]+$" MaxLength="4"/>
|
|
|
- </i:Interaction.Behaviors>
|
|
|
+ <helpers:TextBoxFocusBehavior FillSize="True" NextFocusDirection="Next"/>
|
|
|
+ </i:Interaction.Behaviors>
|
|
|
</TextBox>
|
|
|
<TextBlock Foreground="Snow" Width="40" Height="40" HorizontalAlignment="Left" Margin="5,0,0,0" Text="Height:" TextAlignment="Center" Padding="0,11.5,0,0"/>
|
|
|
- <TextBox Style="{StaticResource DarkTextBoxStyle}" Width="70" Height="20" HorizontalAlignment="Left" Margin="5,0,0,0" Text="{Binding ElementName=saveFilePopup, Path=SaveHeight,Mode=TwoWay}">
|
|
|
+ <TextBox Style="{StaticResource DarkTextBoxStyle}" Width="70" Height="20" HorizontalAlignment="Left"
|
|
|
+ Margin="5,0,0,0" Text="{Binding ElementName=saveFilePopup, Converter={StaticResource ToolSizeToIntConverter}, Path=SaveHeight,Mode=TwoWay}">
|
|
|
<i:Interaction.Behaviors>
|
|
|
- <helpers:AllowableCharactersTextBoxBehavior RegularExpression="^[0-9./-]+$" MaxLength="4"/>
|
|
|
- </i:Interaction.Behaviors>
|
|
|
+ <helpers:TextBoxFocusBehavior FillSize="True" NextFocusDirection="Next"/>
|
|
|
+ </i:Interaction.Behaviors>
|
|
|
</TextBox>
|
|
|
</DockPanel>
|
|
|
<Button Grid.Row="1" Foreground="Snow" Height="40" Width="160" Margin="0,50,0,0" Content="Path" Background="#303030" BorderBrush="{Binding PathButtonBorder}" Command="{Binding ChoosePathCommand}"/>
|