えムナウ Blog

えムナウ の なすがまま

目次

Blog 利用状況

ニュース


follow mnow at http://twitter.com


えムナウのプログラミングのページ

INETAJ

書庫

日記カテゴリ

ギャラリ

2009年5月26日 #

Vs2010 WPF ボヨーンボヨーンって感じ

アニメーションは今までは直線かスプライン曲線だったわけだが、Vs2010でばねで弾むような曲線もできる。
ElasticEase EasingMod プロパティ EaseIn/EaseOut/EaseInOut が選択できる。
Springiness でばねの強さ Oscillations で弾む回数が変えられる。

ボヨーンボヨーンって感じになる。

    <Storyboard x:Key="Storyboard2">
        <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"
            From="1" To="3.5" Duration="00:00:05">
            <DoubleAnimation.EasingFunction>
                <ElasticEase EasingMode="EaseIn"/>
            </DoubleAnimation.EasingFunction>
        </DoubleAnimation>
        <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)"
            From="1" To="3.5" Duration="00:00:05">
            <DoubleAnimation.EasingFunction>
                <ElasticEase EasingMode="EaseIn"/>
            </DoubleAnimation.EasingFunction>
        </DoubleAnimation>
    </Storyboard>

posted @ 0:15 | Feedback (0)