Animation Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Animation() |
Creates a new Animation object with default values. |
Animation(Action<Double>, Double, Double, Easing, Action) |
Creates a new Animation object with the specified parameters. |
Animation()
- Source:
- Animation.cs
- Source:
- Animation.cs
Creates a new Animation object with default values.
public:
Animation();
public Animation ();
Public Sub New ()
Applies to
Animation(Action<Double>, Double, Double, Easing, Action)
- Source:
- Animation.cs
- Source:
- Animation.cs
Creates a new Animation object with the specified parameters.
public Animation (Action<double> callback, double start = 0, double end = 1, Microsoft.Maui.Easing easing = default, Action finished = default);
new Microsoft.Maui.Controls.Animation : Action<double> * double * double * Microsoft.Maui.Easing * Action -> Microsoft.Maui.Controls.Animation
Public Sub New (callback As Action(Of Double), Optional start As Double = 0, Optional end As Double = 1, Optional easing As Easing = Nothing, Optional finished As Action = Nothing)
Parameters
- start
- Double
The fraction into the current animation at which to start the animation.
- end
- Double
The fraction into the current animation at which to end the animation.
- easing
- Easing
The easing function to use to transition in, out, or in and out of the animation.
- finished
- Action
An action to call when the animation is finished.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應