Class DialogAnimationSettings
A class used for configuring the animation properties in the SfDialog.
Inheritance
Namespace: Syncfusion.Blazor.Popups
Assembly: Syncfusion.Blazor.dll
Syntax
public class DialogAnimationSettings : OwningComponentBase
Examples
In the following example, change the animation effect and delay time while opening the dialog.
@using Syncfusion.Blazor.Popups
<SfDialog Width="500px" @bind-Visible="Visibility">
<DialogTemplates>
<Content>
<p>
Dialog content
</p>
</Content>
</DialogTemplates>
<DialogAnimationSettings Delay="400" Effect="DialogEffect.SlideTop">
</DialogAnimationSettings>
</SfDialog>
@code {
private bool Visibility { get; set; } = true;
}
Constructors
DialogAnimationSettings()
Declaration
public DialogAnimationSettings()
Properties
Delay
Gets or sets the delay in milliseconds before the animation begins.
Declaration
public double Delay { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The animation delay is used for showing or hiding the dialog. |
Duration
Gets or sets the duration in milliseconds that the animation takes to open or close the SfDialog.
Declaration
public double Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The animation duration for showing or hiding the dialog. The default value is |
Effect
Gets or sets the name of the animation that should be used when opening and closing the SfDialog. The following are the list of animation effects available to configure to the dialog:
- Fade
- FadeZoom
- FlipLeftDown
- FlipLeftUp
- FlipRightDown
- FlipRightUp
- FlipXDown
- FlipXUp
- FlipYLeft
- FlipYRight
- SlideBottom
- SlideLeft
- SlideRight
- SlideTop
- Zoom
- None.
Declaration
public DialogEffect Effect { get; set; }
Property Value
Type | Description |
---|---|
DialogEffect | The animation effect for showing or hiding the dialog. |
Remarks
If the Fade animation is enabled, the dialog will open with the 'FadeIn' effect and close with the 'FadeOut' effect.
Methods
Dispose()
Dispose the unmanaged resources.
Declaration
public virtual void Dispose()
Dispose(Boolean)
Dispose the unmanaged resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |