DXPopup.AnimationDuration Property
Gets or sets the duration of the show/close animation. This is a bindable property.
Namespace: DevExpress.Maui.Controls
Assembly: DevExpress.Maui.Controls.dll
NuGet Package: DevExpress.Maui.Controls
Declaration
public TimeSpan AnimationDuration { get; set; }
Property Value
Type | Default | Description |
---|---|---|
TimeSpan | 00:00:00 | The animation’s duration. |
Remarks
The following code sample sets the DXPopup‘s show/close animation duration to 500 milliseconds:
<ContentPage ...
xmlns:dxco="clr-namespace:DevExpress.Maui.Controls;assembly=DevExpress.Maui.Controls">
<ContentPage.Content>
<Grid>
<Button
Clicked="OpenPopup_Clicked"
Text="Tap to show a Popup view" />
<dxco:DXPopup
x:Name="popup"
AnimationDuration="00:00:00.500">
<StackLayout WidthRequest="200">
<Label Margin="10,10" Text="This is the DevExpress .NET MAUI Popup component." />
</StackLayout>
</dxco:DXPopup>
</Grid>
</ContentPage.Content>
</ContentPage>
public partial class MainPage : ContentPage {
// ...
private void OpenPopup_Clicked(object sender, EventArgs e) {
popup.IsOpen = true;
}
}
See Also