|
|
@@ -13,14 +13,15 @@
|
|
|
<Setter Property="Width" Value="350"/>
|
|
|
<Setter Property="FontSize" Value="14"/>
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
-
|
|
|
+ <Setter Property="RenderTransformOrigin" Value="50%,75%"/>
|
|
|
+ <Setter Property="Height" Value="100"/>
|
|
|
<!-- <Setter Property="ContentTemplateSelector" Value="{StaticResource NotificationTemplateSelector}"/> -->
|
|
|
<Setter Property="Template">
|
|
|
<ControlTemplate>
|
|
|
- <Border Background="{TemplateBinding Background}"
|
|
|
- BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
- BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
- Margin="8,8,0,0">
|
|
|
+ <Border Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ Margin="8,8,0,0">
|
|
|
<Grid>
|
|
|
<ContentPresenter Content="{TemplateBinding Content}" />
|
|
|
<Button Name="PART_CloseButton" Margin="12" Foreground="{TemplateBinding Foreground}" Opacity="0.8"/>
|
|
|
@@ -30,16 +31,16 @@
|
|
|
</Setter>
|
|
|
|
|
|
<Style.Animations>
|
|
|
- <Animation Duration="0:0:1.0" Easing="CubicEaseInOut" FillMode="Forward">
|
|
|
+ <Animation Duration="0:0:0.25" Easing="QuadraticEaseIn" FillMode="Forward">
|
|
|
<KeyFrame Cue="0%">
|
|
|
<Setter Property="Opacity" Value="0"/>
|
|
|
- <Setter Property="TranslateTransform.X" Value="250"/>
|
|
|
- <Setter Property="Height" Value="0"/>
|
|
|
+ <Setter Property="ScaleTransform.ScaleX" Value="0.75"/>
|
|
|
+ <Setter Property="ScaleTransform.ScaleY" Value="0.75"/>
|
|
|
</KeyFrame>
|
|
|
<KeyFrame Cue="100%">
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
- <Setter Property="TranslateTransform.X" Value="0"/>
|
|
|
- <Setter Property="Height" Value="100"/>
|
|
|
+ <Setter Property="ScaleTransform.ScaleX" Value="1"/>
|
|
|
+ <Setter Property="ScaleTransform.ScaleY" Value="1"/>
|
|
|
</KeyFrame>
|
|
|
</Animation>
|
|
|
</Style.Animations>
|
|
|
@@ -47,16 +48,23 @@
|
|
|
|
|
|
<Style Selector="Notification[IsClosing=true]">
|
|
|
<Style.Animations>
|
|
|
- <Animation Duration="0:0:1.0" Easing="CubicEaseInOut" FillMode="Forward">
|
|
|
+ <Animation Duration="0:0:0.2" Easing="QuadraticEaseOut" FillMode="Forward">
|
|
|
<KeyFrame Cue="0%">
|
|
|
- <Setter Property="Height" Value="100"/>
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
<Setter Property="TranslateTransform.X" Value="0"/>
|
|
|
</KeyFrame>
|
|
|
+ <KeyFrame Cue="50%">
|
|
|
+ <Setter Property="Opacity" Value="0"/>
|
|
|
+ <Setter Property="TranslateTransform.X" Value="250"/>
|
|
|
+ </KeyFrame>
|
|
|
+ <KeyFrame Cue="60%">
|
|
|
+ <Setter Property="Height" Value="100"/>
|
|
|
+ </KeyFrame>
|
|
|
<KeyFrame Cue="100%">
|
|
|
- <Setter Property="Height" Value="0"/>
|
|
|
+ <Setter Property="IsClosed" Value="True"/>
|
|
|
<Setter Property="Opacity" Value="0"/>
|
|
|
<Setter Property="TranslateTransform.X" Value="250"/>
|
|
|
+ <Setter Property="Height" Value="0"/>
|
|
|
</KeyFrame>
|
|
|
</Animation>
|
|
|
</Style.Animations>
|