Class DropDownMenuAnimationSettings
Represents the animation settings for the opening of the dropdown menu in the SfDropDownButton.
Inheritance
Namespace: Syncfusion.Blazor.SplitButtons
Assembly: Syncfusion.Blazor.dll
Syntax
public class DropDownMenuAnimationSettings : OwningComponentBase
Remarks
The DropDownMenuAnimationSettings
class allows you to configure the animation effects for dropdown menu transitions.
It includes properties to control the duration, easing, and effect of the animation.
Constructors
DropDownMenuAnimationSettings()
Declaration
public DropDownMenuAnimationSettings()
Properties
Duration
Gets or sets the time duration (in milliseconds) for the dropdown menu animation.
Declaration
public double Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value that specifies the animation duration in milliseconds. The default value is |
Remarks
Use this property to adjust the speed of the dropdown menu animation. For example:
- Setting a lower value (e.g., 200) makes the animation faster.
- Setting a higher value (e.g., 800) makes the animation slower.
Easing
Gets or sets the easing effect applied during the dropdown menu animation.
Declaration
public string Easing { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the easing effect. The default value is |
Remarks
The easing effect determines the pacing of the animation. Examples of values include:
"ease"
: Default smooth acceleration and deceleration."ease-in"
: Starts slowly and accelerates."ease-out"
: Starts quickly and decelerates.
Effect
Gets or sets the animation effect shown during the dropdown menu transformation.
Declaration
public DropDownMenuAnimationEffect Effect { get; set; }
Property Value
Type | Description |
---|---|
DropDownMenuAnimationEffect | A DropDownMenuAnimationEffect enum value that specifies the animation effect. The default value is |
Remarks
Available animation effects include:
- None: No animation effect is applied.
- SlideDown: Dropdown menu appears with a sliding-down effect.
- ZoomIn: Dropdown menu appears with a zoom-in effect.
- FadeIn: Dropdown menu appears with a fade-in effect.
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |