ViewExtensions.ScaleYTo(VisualElement, Double, UInt32, Easing) Method
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.
Caution
Please use ScaleYToAsync instead.
Returns a task that scales the Y axis of the the VisualElement that is specified by view
to the absolute scale factor scale
.
[System.Obsolete("Please use ScaleYToAsync instead.")]
public static System.Threading.Tasks.Task<bool> ScaleYTo(this Microsoft.Maui.Controls.VisualElement view, double scale, uint length = 250, Microsoft.Maui.Easing? easing = default);
public static System.Threading.Tasks.Task<bool> ScaleYTo(this Microsoft.Maui.Controls.VisualElement view, double scale, uint length = 250, Microsoft.Maui.Easing? easing = default);
[<System.Obsolete("Please use ScaleYToAsync instead.")>]
static member ScaleYTo : Microsoft.Maui.Controls.VisualElement * double * uint32 * Microsoft.Maui.Easing -> System.Threading.Tasks.Task<bool>
static member ScaleYTo : Microsoft.Maui.Controls.VisualElement * double * uint32 * Microsoft.Maui.Easing -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function ScaleYTo (view As VisualElement, scale As Double, Optional length As UInteger = 250, Optional easing As Easing = Nothing) As Task(Of Boolean)
Parameters
- view
- VisualElement
The view on which this method operates.
- scale
- Double
The final absolute scale.
- length
- UInt32
The time, in milliseconds, over which to animate the transition. The default is 250.
- easing
- Easing
The easing function to use for the animation.
Returns
A Task containing a Boolean value which indicates whether the animation was canceled. true
indicates that the animation was canceled. false
indicates that the animation ran to completion.
- Attributes
Exceptions
Thrown when view
is null
.