Browse Source

Only rotate the expander chevron path in animations

pull/9555/head
robloo 4 years ago
parent
commit
149aae77ca
  1. 15
      src/Avalonia.Themes.Fluent/Controls/Expander.xaml

15
src/Avalonia.Themes.Fluent/Controls/Expander.xaml

@ -103,17 +103,18 @@
RenderTransformOrigin="50%,50%" RenderTransformOrigin="50%,50%"
Stretch="None" Stretch="None"
Stroke="{DynamicResource ExpanderChevronForeground}" Stroke="{DynamicResource ExpanderChevronForeground}"
StrokeThickness="1" /> StrokeThickness="1">
<Border.RenderTransform> <Path.RenderTransform>
<RotateTransform /> <RotateTransform />
</Border.RenderTransform> </Path.RenderTransform>
</Path>
</Border> </Border>
</Grid> </Grid>
</Border> </Border>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>
<Style Selector="^:checked /template/ Border#ExpandCollapseChevronBorder"> <Style Selector="^:checked /template/ Path#ExpandCollapseChevron">
<Style.Animations> <Style.Animations>
<Animation FillMode="Both" Duration="0:0:0.0625"> <Animation FillMode="Both" Duration="0:0:0.0625">
<KeyFrame Cue="100%"> <KeyFrame Cue="100%">
@ -122,8 +123,8 @@
</Animation> </Animation>
</Style.Animations> </Style.Animations>
</Style> </Style>
<Style Selector="^:not(:checked) /template/ Border#ExpandCollapseChevronBorder"> <Style Selector="^:not(:checked) /template/ Path#ExpandCollapseChevron">
<Style.Animations> <Style.Animations>
<Animation FillMode="Both" Duration="0:0:0.0625"> <Animation FillMode="Both" Duration="0:0:0.0625">
<KeyFrame Cue="0%"> <KeyFrame Cue="0%">

Loading…
Cancel
Save