Share via


AnimationExtensions.AbortAnimation(IAnimatable, String) メソッド

定義

アニメーションを停止します。

public:
[System::Runtime::CompilerServices::Extension]
 static bool AbortAnimation(Microsoft::Maui::Controls::IAnimatable ^ self, System::String ^ handle);
public static bool AbortAnimation (this Microsoft.Maui.Controls.IAnimatable self, string handle);
static member AbortAnimation : Microsoft.Maui.Controls.IAnimatable * string -> bool
<Extension()>
Public Function AbortAnimation (self As IAnimatable, handle As String) As Boolean

パラメーター

self
IAnimatable

このメソッドが実行されるオブジェクト。

handle
String

そのアニメーションが継続している間、その兄弟アニメーションや親アニメーションに対して一意である必要があるアニメーション キー。

戻り値

注釈

このIAnimatableインスタンスに属するアニメーションを参照している場合handleは、その tweener ハンドラーが削除され、tweener が停止され、このIAnimatableインスタンスからアニメーションが削除され、完了としてマークされます。 このIAnimatableインスタンスに属するキネティックの 1 つを参照している場合handleは、そのインスタンスとそのティッカーが削除されます。

適用対象