|
@@ -9,7 +9,7 @@
|
|
|
xmlns:behaviors="clr-namespace:PixiEditor.Helpers.Behaviours"
|
|
|
xmlns:helpers="clr-namespace:PixiEditor.Helpers"
|
|
|
mc:Ignorable="d"
|
|
|
- Title="ImportFilePopup" Height="350" Width="300" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Name="importFilePopup" DataContext="{DynamicResource ImportFilePopupViewModel}">
|
|
|
+ Title="ImportFilePopup" Topmost="True" ShowInTaskbar="False" Height="350" Width="300" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Name="importFilePopup" DataContext="{DynamicResource ImportFilePopupViewModel}">
|
|
|
<Window.Resources>
|
|
|
<vm:ImportFilePopupViewModel x:Key="ImportFilePopupViewModel"/>
|
|
|
<helpers:ToolSizeToIntConverter x:Key="ToolSizeToIntConverter"/>
|
|
@@ -33,27 +33,27 @@
|
|
|
</Button>
|
|
|
</Grid>
|
|
|
<StackPanel Grid.Row="1" >
|
|
|
- <Label Height="40" Width="120" VerticalAlignment="Top" Content="Import" Foreground="Snow" HorizontalContentAlignment="Center" FontSize="24" Margin="0,10,0,0"/>
|
|
|
- <StackPanel Background="{StaticResource MainColor}" Height="85" Width="200" Margin="0,10,0,0">
|
|
|
+ <Label Height="40" Width="120" VerticalAlignment="Top" Content="Open" Foreground="Snow" HorizontalContentAlignment="Center" FontSize="24" Margin="0,10,0,0"/>
|
|
|
+ <Button Grid.Row="1" BorderThickness="1" Foreground="Snow" Height="40" Width="160" Margin="0,30,0,0" Content="File Path" Background="#303030" BorderBrush="{Binding PathButtonBorder}" Command="{Binding ChoosePathCommand}"/>
|
|
|
+ <StackPanel Background="{StaticResource MainColor}" Height="85" Width="200" Margin="0,30,0,0">
|
|
|
<DockPanel Height="20" Margin="0,15,0,0" Width="150">
|
|
|
<TextBlock Width="40" HorizontalAlignment="Left" Text="Width:" Foreground="Snow" FontSize="14"/>
|
|
|
- <TextBox Style="{StaticResource DarkTextBoxStyle}" Width="75" Margin="-10,0,0,0" Text="{Binding ImportWidth, Converter={StaticResource ToolSizeToIntConverter}, Mode=TwoWay}">
|
|
|
+ <TextBox IsEnabled="{Binding PathIsCorrect}" Style="{StaticResource DarkTextBoxStyle}" Width="75" Margin="-10,0,0,0" Text="{Binding ImportWidth, Converter={StaticResource ToolSizeToIntConverter}, Mode=TwoWay}">
|
|
|
<i:Interaction.Behaviors>
|
|
|
<behaviors:TextBoxFocusBehavior FillSize="True"/>
|
|
|
</i:Interaction.Behaviors>
|
|
|
</TextBox>
|
|
|
</DockPanel>
|
|
|
- <DockPanel Height="20" Margin="0,15,0,0" Width="150">
|
|
|
- <TextBlock Width="45" HorizontalAlignment="Left" Text="Height:" Foreground="Snow" FontSize="14"/>
|
|
|
- <TextBox Style="{StaticResource DarkTextBoxStyle}" Width="75" Margin="-15,0,0,0" Text="{Binding ImportHeight, Converter={StaticResource ToolSizeToIntConverter}, Mode=TwoWay}">
|
|
|
- <i:Interaction.Behaviors>
|
|
|
+
|
|
|
+ <DockPanel Height="20" Margin="0,15,0,0" Width="150">
|
|
|
+ <TextBlock Width="45" HorizontalAlignment="Left" Text="Height:" Foreground="Snow" FontSize="14"/>
|
|
|
+ <TextBox IsEnabled="{Binding PathIsCorrect}" Style="{StaticResource DarkTextBoxStyle}" Width="75" Margin="-15,0,0,0" Text="{Binding ImportHeight, Converter={StaticResource ToolSizeToIntConverter}, Mode=TwoWay}">
|
|
|
+ <i:Interaction.Behaviors>
|
|
|
<behaviors:TextBoxFocusBehavior FillSize="True"/>
|
|
|
</i:Interaction.Behaviors>
|
|
|
- </TextBox>
|
|
|
- </DockPanel>
|
|
|
-
|
|
|
- </StackPanel>
|
|
|
- <Button Grid.Row="1" BorderThickness="1" Foreground="Snow" Height="40" Width="160" Margin="0,30,0,0" Content="File Path" Background="#303030" BorderBrush="{Binding PathButtonBorder}" Command="{Binding ChoosePathCommand}"/>
|
|
|
+ </TextBox>
|
|
|
+ </DockPanel>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
<Button Grid.Row="1" Height="30" Width="60" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="10" Style="{StaticResource DarkRoundButton}" Content="OK" Command="{Binding OkCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"/>
|
|
|
</Grid>
|