共用方式為


BackEase.Amplitude 屬性

定義

取得或設定與 BackEase 動畫相關聯的撤銷幅度。

public:
 property double Amplitude { double get(); void set(double value); };
double Amplitude();

void Amplitude(double value);
public double Amplitude { get; set; }
var double = backEase.amplitude;
backEase.amplitude = double;
Public Property Amplitude As Double
<BackEase Amplitude="double" .../>

屬性值

Double

double

BackEase 動畫相關聯的撤銷幅度。 這個值必須大於或等於 0。 預設值是 1。

範例

下列範例會將 BackEase easing 函式套用至 DoubleAnimation ,以建立在動畫的開頭和結尾稍微撤銷的動畫。

<StackPanel x:Name="LayoutRoot" >
    <StackPanel.Resources>
        <Storyboard x:Name="myStoryboard">
                <DoubleAnimation From="1" To="2" Duration="00:00:1" 
                Storyboard.TargetName="myScaleTransform" 
                Storyboard.TargetProperty="ScaleX">
                <DoubleAnimation.EasingFunction>
                    <BackEase Amplitude="0.3" EasingMode="EaseInOut" />
                </DoubleAnimation.EasingFunction>
            </DoubleAnimation>
        </Storyboard>
    </StackPanel.Resources>

    <Rectangle Margin="60" x:Name="myRectangle" PointerPressed="Pointer_Clicked" 
     Fill="Blue" Width="50" Height="50" >
        
        <Rectangle.RenderTransform>
            <ScaleTransform x:Name="myScaleTransform" />
        </Rectangle.RenderTransform>
        
    </Rectangle>
</StackPanel>
// When the user clicks the rectangle, the animation
// begins. 
private void Pointer_Clicked(object sender, PointerRoutedEventArgs e)
{
    myStoryboard.Begin();
}

適用於