Browse Source

pull/1461/head
Jumar Macato 9 years ago
parent
commit
39fea68f74
  1. 7
      samples/RenderTest/Pages/AnimationsPage.xaml
  2. 2
      src/Avalonia.Styling/Styling/Style.cs

7
samples/RenderTest/Pages/AnimationsPage.xaml

@ -36,10 +36,11 @@
<Style Selector="Rectangle.Rect3:pointerover">
<Style.Animations>
<Animation Duration="0:0:3" Easing="CircularEaseInOut">
<Animation Duration="0:0:3" Easing="BounceEaseInOut">
<TransformKeyFrames Property="TranslateTransform.Y">
<KeyFrame Cue="0%" Value="0"/>
<KeyFrame Cue="50%" Value="-100"/>
<KeyFrame Cue="48%" Value="-100"/>
<KeyFrame Cue="52%" Value="-100"/>
<KeyFrame Cue="100%" Value="0"/>
</TransformKeyFrames>
</Animation>
@ -49,7 +50,7 @@
<Style Selector="Rectangle.Rect4:pointerover">
<Style.Animations>
<Animation Duration="0:0:3" Easing="BounceEaseInOut">
<Animation Duration="0:0:3" Easing="CircularEaseInOut">
<TransformKeyFrames Property="SkewTransform.AngleX">
<KeyFrame Cue="0%" Value="0"/>
<KeyFrame Cue="25%" Value="-20"/>

2
src/Avalonia.Styling/Styling/Style.cs

@ -105,7 +105,7 @@ namespace Avalonia.Styling
/// <param name="container">
/// The control that contains this style. May be null.
/// </param>
void IStyle.Attach(IStyleable control, IStyleHost container)
public void Attach(IStyleable control, IStyleHost container)
{
if (Selector != null)
{

Loading…
Cancel
Save