Animate window content on startup

This commit is contained in:
Yoshi Askharoun
2024-05-15 00:55:45 -05:00
parent 26b6ed6c70
commit c925fa07b8
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -108,7 +108,7 @@
<TranslateTransform/>
</ContentControl.RenderTransform>
<b:ContentControlExtensions.ContentChangedAnimation>
<Storyboard>
<Storyboard x:Name="ContentEntranceAnimation">
<DoubleAnimation From="-32" To="0" Duration="0:0:0.5" Storyboard.TargetProperty="RenderTransform.X">
<DoubleAnimation.EasingFunction>
<QuadraticEase EasingMode="EaseOut"/>
+1
View File
@@ -38,6 +38,7 @@ namespace ZuneModdingHelper
{
base.OnSourceInitialized(e);
_windowHandle = new WindowInteropHelper(this).EnsureHandle();
ContentEntranceAnimation.Begin(ContentFrame);
}
private void MinimizeButton_Click(object sender, RoutedEventArgs e) => SetWindowState(WindowState.Minimized);