|
@@ -5,7 +5,7 @@
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:PixiEditor.Views"
|
|
xmlns:local="clr-namespace:PixiEditor.Views"
|
|
xmlns:converters="clr-namespace:PixiEditor.Helpers.Converters"
|
|
xmlns:converters="clr-namespace:PixiEditor.Helpers.Converters"
|
|
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
|
|
|
|
+ xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:behaviors="clr-namespace:PixiEditor.Helpers.Behaviours"
|
|
mc:Ignorable="d" Focusable="True"
|
|
mc:Ignorable="d" Focusable="True"
|
|
d:DesignHeight="60" d:DesignWidth="250" Name="uc"
|
|
d:DesignHeight="60" d:DesignWidth="250" Name="uc"
|
|
MouseLeave="LayerItem_OnMouseLeave" MouseEnter="LayerItem_OnMouseEnter">
|
|
MouseLeave="LayerItem_OnMouseLeave" MouseEnter="LayerItem_OnMouseEnter">
|
|
@@ -21,15 +21,18 @@
|
|
CommandParameter="{Binding Path=LayerIndex, ElementName=uc}"/>
|
|
CommandParameter="{Binding Path=LayerIndex, ElementName=uc}"/>
|
|
</i:EventTrigger>
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</i:Interaction.Triggers>
|
|
- <Grid>
|
|
|
|
|
|
+ <Grid Focusable="True">
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="30"/>
|
|
<ColumnDefinition Width="30"/>
|
|
<ColumnDefinition Width="199*"/>
|
|
<ColumnDefinition Width="199*"/>
|
|
<ColumnDefinition Width="20"/>
|
|
<ColumnDefinition Width="20"/>
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
+ <i:Interaction.Behaviors>
|
|
|
|
+ <behaviors:ClearFocusOnClickBehavior/>
|
|
|
|
+ </i:Interaction.Behaviors>
|
|
<CheckBox Style="{StaticResource ImageCheckBox}" VerticalAlignment="Center"
|
|
<CheckBox Style="{StaticResource ImageCheckBox}" VerticalAlignment="Center"
|
|
IsThreeState="False" HorizontalAlignment="Center"
|
|
IsThreeState="False" HorizontalAlignment="Center"
|
|
- IsChecked="{Binding Path=IsVisible, Mode=TwoWay}" Grid.Column="0" Height="16" />
|
|
|
|
|
|
+ IsChecked="{Binding Path=IsVisibleUndoTriggerable, Mode=TwoWay}" Grid.Column="0" Height="16" />
|
|
<StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Left" Margin="5,0,0,0">
|
|
<StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Left" Margin="5,0,0,0">
|
|
<Image Source="{Binding PreviewImage,ElementName=uc}" Stretch="Uniform" Width="50" Height="20" Margin="0,0,20,0"
|
|
<Image Source="{Binding PreviewImage,ElementName=uc}" Stretch="Uniform" Width="50" Height="20" Margin="0,0,20,0"
|
|
RenderOptions.BitmapScalingMode="NearestNeighbor"/>
|
|
RenderOptions.BitmapScalingMode="NearestNeighbor"/>
|