38 lines
1.3 KiB
XML
38 lines
1.3 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Style x:Key="WindowBase" TargetType="{x:Type Window}" />
|
|
|
|
<Style
|
|
x:Key="EmptyWindow"
|
|
BasedOn="{StaticResource WindowBase}"
|
|
TargetType="{x:Type Window}" />
|
|
|
|
<!-- Eine Ease-Out-Funktion für eine sanfte Bewegung -->
|
|
<QuadraticEase x:Key="EaseOut" EasingMode="EaseOut" />
|
|
|
|
<Storyboard x:Key="WindowLoadedAnimation">
|
|
<DoubleAnimation
|
|
Storyboard.TargetProperty="Opacity"
|
|
From="0"
|
|
To="1"
|
|
Duration="0:0:0.5" />
|
|
<DoubleAnimation
|
|
EasingFunction="{StaticResource EaseOut}"
|
|
Storyboard.TargetProperty="RenderTransform.(TranslateTransform.Y)"
|
|
From="50"
|
|
To="0"
|
|
Duration="0:0:0.5" />
|
|
</Storyboard>
|
|
<Storyboard x:Key="WindowClosingAnimation">
|
|
<DoubleAnimation
|
|
Storyboard.TargetProperty="Opacity"
|
|
From="1"
|
|
To="0"
|
|
Duration="0:0:0.5" />
|
|
<DoubleAnimation
|
|
EasingFunction="{StaticResource EaseOut}"
|
|
Storyboard.TargetProperty="RenderTransform.(TranslateTransform.Y)"
|
|
From="0"
|
|
To="50"
|
|
Duration="0:0:0.5" />
|
|
</Storyboard>
|
|
</ResourceDictionary> |