.NET MAUI Popup Content
The Telerik UI for .NET MAUI Popup provides options for setting its content and for defining when it will open and close.
Opening and Closing
To show the Popup control, set IsOpen
property to True
. By default, the Popup stays open until the IsOpen
property is set to False
or, in case of a non-modal Popup, until the user clicks outside the control.
Setting the Content
To host content inside the Popup, either add it directly as a child element or use the RadPopup
's ContentTemplate
property.
The example below demonstrates how to create a sample DataTemplate
and set it as the ContentTemplate
of the Popup.
1. Add the needed DataTemplate
to the page Resources:
2. When you define the Popup either in XAML or as code-behind, apply the ContentTemplate
property:
3. Add the CheckBoxIsCheckedChanged
event handler as shown below:
The following image shows the end result.