DevExpress Popup for .NET MAUI
- 2 minutes to read
The DevExpress DXPopup for .NET MAUI allows you to show a Popup that overlays application content. You can attach the DXPopup
control to any view on the screen or show it as a separate dialog.
Review our demo app on GitHub to try out the DXPopup
control:
Add a Popup to the Page
Before you proceed, read the following topic: Get Started with DevExpress Controls for .NET Multi-platform App UI (.NET MAUI).
Use the IsOpen property to show or hide a Popup. The following example adds the Popup to a page:
<ContentPage ...
xmlns:dx="http://schemas.devexpress.com/maui">
<dx:DXPopup x:Name="Popup" ...>
<!--...-->
</dx:DXPopup>
</ContentPage>
private void Button_Clicked(object sender, EventArgs e) {
Popup.IsOpen = true;
}
A Popup raises the following events when a user opens and closes it:
- Opening
- Occurs before the pop-up view appears and allows you to prevent the action.
- Opened
- Occurs after the pop-up view appears.
- Closing
- Occurs before the pop-up view closes and allows you to prevent the action.
- Closed
- Occurs after the pop-up view closes.
Next Steps
- Positioning
- Describes how you can position popup on the page.
- Custom appearance
- Explains how to customize popup appearance.
- Examples
- Lists task-based solutions with the Popup control.