Stagger animations on settings page

This commit is contained in:
Yoshi Askharoun
2025-09-02 11:32:53 -07:00
parent 5483881994
commit 5b5137678a
+14
View File
@@ -7,6 +7,8 @@
xmlns:zmhc="clr-namespace:ZuneModdingHelper.Controls"
xmlns:zmhs="clr-namespace:ZuneModdingHelper.Services"
xmlns:ocW="clr-namespace:OwlCore.Wpf;assembly=OwlCore.Wpf"
xmlns:b="clr-namespace:ZuneModdingHelper.Behaviors"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
d:Background="White"
@@ -20,6 +22,7 @@
</UserControl.Resources>
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel>
<StackPanel>
<TextBlock Style="{StaticResource ZuneBodyTextBlockStyle}">
<Run Text="Zune" Style="{StaticResource ZuneHeaderTextStyle}"/>
@@ -36,7 +39,9 @@
<Button Content="KILL ALL" HorizontalAlignment="Left" Margin="0,8,0,0"
Visibility="{Binding FolderPickerVisibility, Mode=OneTime}"
Click="KillZuneButton_Click"/>
</StackPanel>
<StackPanel>
<TextBlock Margin="0,24,0,0" Style="{StaticResource ZuneBodyTextBlockStyle}">
<Run Text="General" Style="{StaticResource ZuneHeaderTextStyle}"/>
</TextBlock>
@@ -52,5 +57,14 @@
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
<i:Interaction.Behaviors>
<b:FadeAnimateItemsPanelBehavior Tick="0:0:0.05">
<b:FadeAnimateItemsPanelBehavior.Animation>
<DoubleAnimation From="0" To="1" Duration="0:0:0.3"/>
</b:FadeAnimateItemsPanelBehavior.Animation>
</b:FadeAnimateItemsPanelBehavior>
</i:Interaction.Behaviors>
</StackPanel>
</ScrollViewer>
</UserControl>