mirror of
https://github.com/ZuneDev/ZuneModdingHelper.git
synced 2026-07-27 13:12:21 -07:00
Animate window content on startup
This commit is contained in:
@@ -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"/>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user