ElasticEase.Springiness ElasticEase.Springiness ElasticEase.Springiness ElasticEase.Springiness Property

定義

スプリングの硬さを取得または設定します。Gets or sets the stiffness of the spring. Springiness の値が小さいほど、スプリングが硬くなり、弾性の強さが 1 回の振動で速く衰えます。The smaller the Springiness value is, the stiffer the spring and the faster the elasticity decreases in intensity over each oscillation.

public:
 property double Springiness { double get(); void set(double value); };
public double Springiness { get; set; }
member this.Springiness : double with get, set
Public Property Springiness As Double

プロパティ値

スプリングの硬さを指定する正の数値。A positive number that specifies the stiffness of the spring. 既定値は 3 です。The default value is 3.

次の例では、適用、ElasticEaseイージング関数をDoubleAnimationスプリングが伸び縮みし静止するまでのようなアニメーションを作成します。The following example applies an ElasticEase easing function to a DoubleAnimation to create an animation that resembles a spring oscillating back and forth until it comes to rest.

<Rectangle Name="myRectangle" Width="200" Height="30" Fill="Blue">
    <Rectangle.Triggers>
        <EventTrigger RoutedEvent="Rectangle.MouseDown">
            <BeginStoryboard>
                <Storyboard>
                    <DoubleAnimation From="30" To="200" Duration="00:00:4" 
                     Storyboard.TargetName="myRectangle" 
                     Storyboard.TargetProperty="Height">
                        <DoubleAnimation.EasingFunction>
                            
                            <!-- Elastic easing function assigned to From/To animation -->
                            <ElasticEase x:Name="myElasticEase" Oscillations="3" 
                             Springiness="1" EasingMode="EaseOut"/>
                        </DoubleAnimation.EasingFunction>
                    </DoubleAnimation>

                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Rectangle.Triggers>

</Rectangle>

注釈

いずれか小さい方、Springiness値は、硬くと衰えます強さの点で高速の弾力性が減少します。The smaller the Springiness value is, the stiffer the spring and the faster the elasticity decreases in intensity over each oscillation.

依存関係プロパティの識別子フィールド:Dependency property identifier field: SpringinessPropertySpringinessProperty

次の図のさまざまな値の効果を示しています。Springinessします。The following diagram illustrates the effect of different values of Springiness.

さまざまな Springiness の値を示します。Demonstrates different Springiness values.

XAML 属性の使用方法XAML Attribute Usage

<ElasticEase Springiness="double"/>  

適用対象