|
@@ -2,37 +2,40 @@
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:PixiEditor.UI.Common.Controls">
|
|
xmlns:controls="clr-namespace:PixiEditor.UI.Common.Controls">
|
|
<ControlTheme TargetType="controls:Shelf" x:Key="{x:Type controls:Shelf}">
|
|
<ControlTheme TargetType="controls:Shelf" x:Key="{x:Type controls:Shelf}">
|
|
|
|
+ <Setter Property="Transitions">
|
|
|
|
+ <Transitions>
|
|
|
|
+ <TransformOperationsTransition Easing="SineEaseInOut" Property="RenderTransform" Duration="0:0:0.3" />
|
|
|
|
+ </Transitions>
|
|
|
|
+ </Setter>
|
|
<Setter Property="Template">
|
|
<Setter Property="Template">
|
|
<ControlTemplate>
|
|
<ControlTemplate>
|
|
<Border CornerRadius="{DynamicResource ControlCornerRadiusTop}"
|
|
<Border CornerRadius="{DynamicResource ControlCornerRadiusTop}"
|
|
Background="{DynamicResource ThemeBackgroundBrush1}">
|
|
Background="{DynamicResource ThemeBackgroundBrush1}">
|
|
- <Border.Transitions>
|
|
|
|
- <Transitions>
|
|
|
|
- <TransformOperationsTransition Easing="SineEaseInOut" Property="RenderTransform" Duration="0:0:0.3"/>
|
|
|
|
- </Transitions>
|
|
|
|
- </Border.Transitions>
|
|
|
|
<DockPanel LastChildFill="True">
|
|
<DockPanel LastChildFill="True">
|
|
- <CheckBox IsChecked="{TemplateBinding IsOpen, Mode=TwoWay}" Focusable="False" ZIndex="10" Name="PART_VisibilityCheckbox" Height="16" HorizontalAlignment="Right"
|
|
|
|
|
|
+ <CheckBox IsChecked="{TemplateBinding IsOpen, Mode=TwoWay}" Focusable="False" ZIndex="10"
|
|
|
|
+ Name="PART_VisibilityCheckbox" Height="16" HorizontalAlignment="Right"
|
|
DockPanel.Dock="Right" VerticalAlignment="Top" Margin="0,5,5,0">
|
|
DockPanel.Dock="Right" VerticalAlignment="Top" Margin="0,5,5,0">
|
|
- <CheckBox.Transitions>
|
|
|
|
- <Transitions>
|
|
|
|
- <TransformOperationsTransition Easing="SineEaseInOut" Property="RenderTransform" Duration="0:0:0.3"/>
|
|
|
|
- </Transitions>
|
|
|
|
- </CheckBox.Transitions>
|
|
|
|
- <CheckBox.Template>
|
|
|
|
- <ControlTemplate TargetType="{x:Type CheckBox}">
|
|
|
|
- <StackPanel Orientation="Horizontal" Focusable="False">
|
|
|
|
- <Image Focusable="False" Width="14" Cursor="Hand" Name="PART_CheckboxImage" Source="avares://PixiEditor.UI.Common/Assets/ChevronDown.png"/>
|
|
|
|
- <ContentPresenter Focusable="False"/>
|
|
|
|
- </StackPanel>
|
|
|
|
- </ControlTemplate>
|
|
|
|
- </CheckBox.Template>
|
|
|
|
- </CheckBox>
|
|
|
|
|
|
+ <CheckBox.Transitions>
|
|
|
|
+ <Transitions>
|
|
|
|
+ <TransformOperationsTransition Easing="SineEaseInOut" Property="RenderTransform"
|
|
|
|
+ Duration="0:0:0.3" />
|
|
|
|
+ </Transitions>
|
|
|
|
+ </CheckBox.Transitions>
|
|
|
|
+ <CheckBox.Template>
|
|
|
|
+ <ControlTemplate TargetType="{x:Type CheckBox}">
|
|
|
|
+ <StackPanel Orientation="Horizontal" Focusable="False">
|
|
|
|
+ <Image Focusable="False" Width="14" Cursor="Hand" Name="PART_CheckboxImage"
|
|
|
|
+ Source="avares://PixiEditor.UI.Common/Assets/ChevronDown.png" />
|
|
|
|
+ <ContentPresenter Focusable="False" />
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </ControlTemplate>
|
|
|
|
+ </CheckBox.Template>
|
|
|
|
+ </CheckBox>
|
|
<ContentPresenter Content="{TemplateBinding Content}">
|
|
<ContentPresenter Content="{TemplateBinding Content}">
|
|
<ContentPresenter.Transitions>
|
|
<ContentPresenter.Transitions>
|
|
<Transitions>
|
|
<Transitions>
|
|
- <TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.3"/>
|
|
|
|
- <DoubleTransition Property="Opacity" Duration="0:0:0.3"/>
|
|
|
|
|
|
+ <TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.3" />
|
|
|
|
+ <DoubleTransition Property="Opacity" Duration="0:0:0.3" />
|
|
</Transitions>
|
|
</Transitions>
|
|
</ContentPresenter.Transitions>
|
|
</ContentPresenter.Transitions>
|
|
</ContentPresenter>
|
|
</ContentPresenter>
|
|
@@ -42,21 +45,17 @@
|
|
</Setter>
|
|
</Setter>
|
|
|
|
|
|
<Style Selector="^ /template/ CheckBox">
|
|
<Style Selector="^ /template/ CheckBox">
|
|
- <Setter Property="RenderTransformOrigin" Value="7, 7"/>
|
|
|
|
- <Setter Property="RenderTransform" Value="rotate(0deg)"/>
|
|
|
|
|
|
+ <Setter Property="RenderTransformOrigin" Value="7, 7" />
|
|
|
|
+ <Setter Property="RenderTransform" Value="rotate(0deg)" />
|
|
</Style>
|
|
</Style>
|
|
|
|
|
|
<Style Selector="^:not(:isOpen) /template/ CheckBox">
|
|
<Style Selector="^:not(:isOpen) /template/ CheckBox">
|
|
- <Setter Property="RenderTransform" Value="rotate(180deg)"/>
|
|
|
|
- </Style>
|
|
|
|
-
|
|
|
|
- <Style Selector="^:not(:isOpen) /template/ Border">
|
|
|
|
- <Setter Property="RenderTransform" Value="translateY(20px)"/>
|
|
|
|
|
|
+ <Setter Property="RenderTransform" Value="rotate(180deg)" />
|
|
</Style>
|
|
</Style>
|
|
|
|
|
|
<Style Selector="^:not(:isOpen) /template/ ContentPresenter">
|
|
<Style Selector="^:not(:isOpen) /template/ ContentPresenter">
|
|
- <Setter Property="Opacity" Value="0"/>
|
|
|
|
- <Setter Property="IsHitTestVisible" Value="False"/>
|
|
|
|
|
|
+ <Setter Property="Opacity" Value="0" />
|
|
|
|
+ <Setter Property="IsHitTestVisible" Value="False" />
|
|
</Style>
|
|
</Style>
|
|
</ControlTheme>
|
|
</ControlTheme>
|
|
-</ResourceDictionary>
|
|
|
|
|
|
+</ResourceDictionary>
|