mirror of
https://github.com/ZuneDev/ZuneModdingHelper.git
synced 2026-07-27 13:12:21 -07:00
Stagger animations on settings page
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
xmlns:zmhc="clr-namespace:ZuneModdingHelper.Controls"
|
xmlns:zmhc="clr-namespace:ZuneModdingHelper.Controls"
|
||||||
xmlns:zmhs="clr-namespace:ZuneModdingHelper.Services"
|
xmlns:zmhs="clr-namespace:ZuneModdingHelper.Services"
|
||||||
xmlns:ocW="clr-namespace:OwlCore.Wpf;assembly=OwlCore.Wpf"
|
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"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="450" d:DesignWidth="800"
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
d:Background="White"
|
d:Background="White"
|
||||||
@@ -21,36 +23,48 @@
|
|||||||
|
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Style="{StaticResource ZuneBodyTextBlockStyle}">
|
<StackPanel>
|
||||||
<Run Text="Zune" Style="{StaticResource ZuneHeaderTextStyle}"/>
|
<TextBlock Style="{StaticResource ZuneBodyTextBlockStyle}">
|
||||||
</TextBlock>
|
<Run Text="Zune" Style="{StaticResource ZuneHeaderTextStyle}"/>
|
||||||
<TextBlock Text="Choose the directory where the Zune software is installed." Margin="0,8"
|
</TextBlock>
|
||||||
Style="{StaticResource ZuneBodyTextBlockStyle}" />
|
<TextBlock Text="Choose the directory where the Zune software is installed." Margin="0,8"
|
||||||
<TextBox Text="{Binding Settings.ZuneInstallDir}"/>
|
Style="{StaticResource ZuneBodyTextBlockStyle}" />
|
||||||
<Button Content="LOCATE" HorizontalAlignment="Left" Margin="0,8,0,0"
|
<TextBox Text="{Binding Settings.ZuneInstallDir}"/>
|
||||||
Visibility="{Binding FolderPickerVisibility, Mode=OneTime}"
|
<Button Content="LOCATE" HorizontalAlignment="Left" Margin="0,8,0,0"
|
||||||
Click="LocateZuneButton_Click"/>
|
Visibility="{Binding FolderPickerVisibility, Mode=OneTime}"
|
||||||
|
Click="LocateZuneButton_Click"/>
|
||||||
|
|
||||||
<TextBlock Text="Force close all Zune processes that may prevent mods from being applied. May cause data loss." Margin="0,12,0,0"
|
<TextBlock Text="Force close all Zune processes that may prevent mods from being applied. May cause data loss." Margin="0,12,0,0"
|
||||||
Style="{StaticResource ZuneBodyTextBlockStyle}" />
|
Style="{StaticResource ZuneBodyTextBlockStyle}" />
|
||||||
<Button Content="KILL ALL" HorizontalAlignment="Left" Margin="0,8,0,0"
|
<Button Content="KILL ALL" HorizontalAlignment="Left" Margin="0,8,0,0"
|
||||||
Visibility="{Binding FolderPickerVisibility, Mode=OneTime}"
|
Visibility="{Binding FolderPickerVisibility, Mode=OneTime}"
|
||||||
Click="KillZuneButton_Click"/>
|
Click="KillZuneButton_Click"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
<TextBlock Margin="0,24,0,0" Style="{StaticResource ZuneBodyTextBlockStyle}">
|
<StackPanel>
|
||||||
<Run Text="General" Style="{StaticResource ZuneHeaderTextStyle}"/>
|
<TextBlock Margin="0,24,0,0" Style="{StaticResource ZuneBodyTextBlockStyle}">
|
||||||
</TextBlock>
|
<Run Text="General" Style="{StaticResource ZuneHeaderTextStyle}"/>
|
||||||
<TextBlock Text="Choose how often the donation prompt is shown." Margin="0,8"
|
</TextBlock>
|
||||||
Style="{StaticResource ZuneBodyTextBlockStyle}" />
|
<TextBlock Text="Choose how often the donation prompt is shown." Margin="0,8"
|
||||||
<ComboBox SelectedValue="{Binding Settings.DonationRequestInterval}"
|
Style="{StaticResource ZuneBodyTextBlockStyle}" />
|
||||||
ItemsSource="{ocW:EnumValues Enum=zmhs:DonationRequestInterval}"
|
<ComboBox SelectedValue="{Binding Settings.DonationRequestInterval}"
|
||||||
HorizontalAlignment="Left">
|
ItemsSource="{ocW:EnumValues Enum=zmhs:DonationRequestInterval}"
|
||||||
<ComboBox.ItemTemplate>
|
HorizontalAlignment="Left">
|
||||||
<DataTemplate DataType="{x:Type zmhs:DonationRequestInterval}">
|
<ComboBox.ItemTemplate>
|
||||||
<TextBlock Text="{Binding Converter={StaticResource DonReqIntv}}"/>
|
<DataTemplate DataType="{x:Type zmhs:DonationRequestInterval}">
|
||||||
</DataTemplate>
|
<TextBlock Text="{Binding Converter={StaticResource DonReqIntv}}"/>
|
||||||
</ComboBox.ItemTemplate>
|
</DataTemplate>
|
||||||
</ComboBox>
|
</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>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user