|
@@ -4,7 +4,6 @@
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
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:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:behaviors="clr-namespace:PixiEditor.Helpers.Behaviours"
|
|
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"
|
|
@@ -22,32 +21,31 @@
|
|
</i:EventTrigger>
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</i:Interaction.Triggers>
|
|
<Grid>
|
|
<Grid>
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
- <ColumnDefinition Width="30"/>
|
|
|
|
- <ColumnDefinition Width="199*"/>
|
|
|
|
- <ColumnDefinition Width="20"/>
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
- <CheckBox Style="{StaticResource ImageCheckBox}" VerticalAlignment="Center"
|
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition Height="7.5"/>
|
|
|
|
+ <RowDefinition Height="20"/>
|
|
|
|
+ <RowDefinition Height="7.5"/>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <Grid AllowDrop="True" DragEnter="Grid_DragEnter" Drop="Grid_Drop_Top" DragLeave="Grid_DragLeave" Grid.Row="0" Grid.ColumnSpan="3" Background="Transparent"/>
|
|
|
|
+ <Grid Grid.Row="1" DragEnter="Grid_DragEnter" DragLeave="Grid_DragLeave">
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="30"/>
|
|
|
|
+ <ColumnDefinition Width="199*"/>
|
|
|
|
+ <ColumnDefinition Width="20"/>
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+ <CheckBox Style="{StaticResource ImageCheckBox}" VerticalAlignment="Center"
|
|
IsThreeState="False" HorizontalAlignment="Center"
|
|
IsThreeState="False" HorizontalAlignment="Center"
|
|
IsChecked="{Binding Path=IsVisibleUndoTriggerable, 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">
|
|
|
|
- <Image Source="{Binding PreviewImage,ElementName=uc}" Stretch="Uniform" Width="50" Height="20" Margin="0,0,20,0"
|
|
|
|
|
|
+ <StackPanel Grid.Row="1" 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"
|
|
RenderOptions.BitmapScalingMode="NearestNeighbor"/>
|
|
RenderOptions.BitmapScalingMode="NearestNeighbor"/>
|
|
- <local:EditableTextBlock
|
|
|
|
|
|
+ <local:EditableTextBlock
|
|
IsEditing="{Binding IsRenaming, ElementName=uc, Mode=TwoWay}" FontSize="16"
|
|
IsEditing="{Binding IsRenaming, ElementName=uc, Mode=TwoWay}" FontSize="16"
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Text="{Binding LayerName, ElementName=uc, Mode=TwoWay}" />
|
|
Text="{Binding LayerName, ElementName=uc, Mode=TwoWay}" />
|
|
- </StackPanel>
|
|
|
|
- <StackPanel Visibility="{Binding Path=ControlButtonsVisible, ElementName=uc}"
|
|
|
|
- Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Width="11"
|
|
|
|
- Grid.Column="2">
|
|
|
|
- <Button CommandParameter="{Binding LayerIndex, ElementName=uc}" Command="{Binding Path=MoveToFrontCommand, ElementName=uc}" Background="Transparent" Style="{StaticResource OpacityButtonStyle}" Foreground="White" HorizontalAlignment="Center" BorderThickness="0">
|
|
|
|
- <TextBlock Text="▲"/>
|
|
|
|
- </Button>
|
|
|
|
- <Button CommandParameter="{Binding LayerIndex, ElementName=uc}" Command="{Binding Path=MoveToBackCommand, ElementName=uc}" Background="Transparent" HorizontalAlignment="Center" Style="{StaticResource OpacityButtonStyle}" Foreground="White" BorderThickness="0">
|
|
|
|
- <TextBlock Text="▼"/>
|
|
|
|
- </Button>
|
|
|
|
- </StackPanel>
|
|
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </Grid>
|
|
|
|
+ <Grid DragEnter="Grid_DragEnter" Drop="Grid_Drop_Bottom" DragLeave="Grid_DragLeave" Grid.Row="2" AllowDrop="True" Grid.ColumnSpan="3" Background="Transparent"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Border>
|
|
</UserControl>
|
|
</UserControl>
|