|
@@ -11,7 +11,7 @@
|
|
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
|
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
|
xmlns:xcad="http://schemas.xceed.com/wpf/xaml/avalondock"
|
|
xmlns:xcad="http://schemas.xceed.com/wpf/xaml/avalondock"
|
|
- xmlns:ui="clr-namespace:PixiEditor.Helpers.UI"
|
|
|
|
|
|
+ xmlns:ui="clr-namespace:PixiEditor.Helpers.UI"
|
|
mc:Ignorable="d"
|
|
mc:Ignorable="d"
|
|
Title="PixiEditor" Height="1000" Width="1600" Background="#FF252424" WindowStartupLocation="CenterScreen" WindowState="Maximized" DataContext="{DynamicResource ViewModelMain}">
|
|
Title="PixiEditor" Height="1000" Width="1600" Background="#FF252424" WindowStartupLocation="CenterScreen" WindowState="Maximized" DataContext="{DynamicResource ViewModelMain}">
|
|
<Window.Resources>
|
|
<Window.Resources>
|
|
@@ -23,7 +23,7 @@
|
|
<Window.InputBindings>
|
|
<Window.InputBindings>
|
|
<KeyBinding
|
|
<KeyBinding
|
|
Modifiers="Ctrl"
|
|
Modifiers="Ctrl"
|
|
- Key="N"
|
|
|
|
|
|
+ Key="N"
|
|
Command="{Binding GenerateDrawAreaCommand}"/>
|
|
Command="{Binding GenerateDrawAreaCommand}"/>
|
|
<KeyBinding
|
|
<KeyBinding
|
|
Modifiers="Ctrl"
|
|
Modifiers="Ctrl"
|
|
@@ -37,36 +37,6 @@
|
|
Modifiers="Ctrl"
|
|
Modifiers="Ctrl"
|
|
Key="Y"
|
|
Key="Y"
|
|
Command="{Binding RedoCommand}"/>
|
|
Command="{Binding RedoCommand}"/>
|
|
- <KeyBinding
|
|
|
|
- Key="B"
|
|
|
|
- Command="{Binding SelectToolCommand}"
|
|
|
|
- CommandParameter="Pen"/>
|
|
|
|
- <KeyBinding
|
|
|
|
- Key="G"
|
|
|
|
- Command="{Binding SelectToolCommand}"
|
|
|
|
- CommandParameter="Bucket"/>
|
|
|
|
- <KeyBinding
|
|
|
|
- Key="L"
|
|
|
|
- Command="{Binding SelectToolCommand}"
|
|
|
|
- CommandParameter="Line"/>
|
|
|
|
- <KeyBinding
|
|
|
|
- Key="C"
|
|
|
|
- Command="{Binding SelectToolCommand}"
|
|
|
|
- CommandParameter="Circle"/>
|
|
|
|
- <KeyBinding Key="R"
|
|
|
|
- Command="{Binding SelectToolCommand}"
|
|
|
|
- CommandParameter="Rectangle"/>
|
|
|
|
- <KeyBinding Key="O"
|
|
|
|
- Command="{Binding SelectToolCommand}"
|
|
|
|
- CommandParameter="ColorPicker"/>
|
|
|
|
- <KeyBinding Key="E"
|
|
|
|
- Command="{Binding SelectToolCommand}"
|
|
|
|
- CommandParameter="Earser"/>
|
|
|
|
- <KeyBinding Key="U"
|
|
|
|
- Command="{Binding SelectToolCommand}"
|
|
|
|
- CommandParameter="Lighten"/>
|
|
|
|
- <KeyBinding Key="O" Modifiers="Ctrl"
|
|
|
|
- Command="{Binding OpenFileCommand}"/>
|
|
|
|
|
|
|
|
|
|
|
|
</Window.InputBindings>
|
|
</Window.InputBindings>
|
|
@@ -236,7 +206,7 @@
|
|
<Border BorderThickness="1" BorderBrush="Gray" MinWidth="60" Background="{Binding IsActive, Mode=TwoWay, Converter={StaticResource BoolToColorConverter}}">
|
|
<Border BorderThickness="1" BorderBrush="Gray" MinWidth="60" Background="{Binding IsActive, Mode=TwoWay, Converter={StaticResource BoolToColorConverter}}">
|
|
<DockPanel>
|
|
<DockPanel>
|
|
<CheckBox VerticalAlignment="Center" Command="{Binding Path=DataContext.ReloadImageCommand, RelativeSource={RelativeSource AncestorType={x:Type Window}}}" IsThreeState="False" IsChecked="{Binding Path=IsVisible}"/>
|
|
<CheckBox VerticalAlignment="Center" Command="{Binding Path=DataContext.ReloadImageCommand, RelativeSource={RelativeSource AncestorType={x:Type Window}}}" IsThreeState="False" IsChecked="{Binding Path=IsVisible}"/>
|
|
- <Button Background="Transparent" Style="{StaticResource BaseDarkButton}" FontSize="16" DockPanel.Dock="Left" Content="{Binding Name}" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}},
|
|
|
|
|
|
+ <Button Background="Transparent" Style="{StaticResource BaseDarkButton}" FontSize="16" DockPanel.Dock="Left" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}},
|
|
Path=DataContext.SetActiveLayerCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=TemplatedParent},
|
|
Path=DataContext.SetActiveLayerCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=TemplatedParent},
|
|
Path=(ItemsControl.AlternationIndex)}">
|
|
Path=(ItemsControl.AlternationIndex)}">
|
|
<Button.ContextMenu>
|
|
<Button.ContextMenu>
|
|
@@ -245,6 +215,7 @@
|
|
Path=(ItemsControl.AlternationIndex)}"/>
|
|
Path=(ItemsControl.AlternationIndex)}"/>
|
|
</ContextMenu>
|
|
</ContextMenu>
|
|
</Button.ContextMenu>
|
|
</Button.ContextMenu>
|
|
|
|
+ <vws:EditableTextBlock Text="{Binding Name}"/>
|
|
</Button>
|
|
</Button>
|
|
</DockPanel>
|
|
</DockPanel>
|
|
</Border>
|
|
</Border>
|