New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents the abstract base class for popup controls that display content in an overlay above other UI elements. Provides functionality for positioning, animation, and content management for popup-style controls.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public abstract class PopupBase : BindableObject

Inheritance: objectPopupBase

Derived Classes: RadPopup

Constructors

Initializes a new instance of the PopupBase class. Sets up the internal animation system and registers the instance for memory tracking.

C#
public PopupBase()

Fields

Identifies the AnimationDuration bindable property.

C#
public static readonly BindableProperty AnimationDurationProperty

AnimationEasingProperty

BindableProperty

Identifies the AnimationEasing bindable property.

C#
public static readonly BindableProperty AnimationEasingProperty

AnimationTypeProperty

BindableProperty

Identifies the AnimationType bindable property.

C#
public static readonly BindableProperty AnimationTypeProperty

ContentProperty

BindableProperty

Identifies the Content bindable property.

C#
public static readonly BindableProperty ContentProperty

ContentTemplateProperty

BindableProperty

Identifies the ContentTemplate bindable property.

C#
public static readonly BindableProperty ContentTemplateProperty

HorizontalOffsetProperty

BindableProperty

Identifies the HorizontalOffset bindable property.

C#
public static readonly BindableProperty HorizontalOffsetProperty

IsModalProperty

BindableProperty

Identifies the IsModal bindable property.

C#
public static readonly BindableProperty IsModalProperty

IsOpenProperty

BindableProperty

Identifies the IsOpen bindable property.

C#
public static readonly BindableProperty IsOpenProperty

Identifies the OutsideBackgroundColor bindable property.

C#
public static readonly BindableProperty OutsideBackgroundColorProperty

PlacementProperty

BindableProperty

Identifies the Placement bindable property.

C#
public static readonly BindableProperty PlacementProperty

PlacementTargetProperty

BindableProperty

Identifies the PlacementTarget bindable property.

C#
public static readonly BindableProperty PlacementTargetProperty

VerticalOffsetProperty

BindableProperty

Identifies the VerticalOffset bindable property.

C#
public static readonly BindableProperty VerticalOffsetProperty

Properties

Gets or sets the duration in milliseconds for the popup open and close animations. This value is used for both opening and closing animations when AnimationType is not None.

C#
public int AnimationDuration { get; set; }
Property Value:

The animation duration in milliseconds. The default value is 300.

Gets or sets the easing function used for popup opening and closing animations. This determines the acceleration curve for the animation when AnimationType is not None.

C#
[TypeConverter(typeof(EasingTypeConverter))]
public Easing AnimationEasing { get; set; }
Property Value:

The Easing function for animations. The default value is .

Gets or sets the type of animation used when opening and closing the popup. Different animation types provide various visual effects for showing and hiding the popup.

C#
public PopupAnimationType AnimationType { get; set; }
Property Value:

A PopupAnimationType value that specifies the animation type. The default value is Fade.

Gets or sets the content to be displayed within the popup. When both Content and ContentTemplate are set, the ContentTemplate takes precedence.

C#
public View Content { get; set; }
Property Value:

The View representing the popup's content, or null if no content is set.

ContentTemplate

DataTemplate

Gets or sets the data template used to generate the popup content dynamically. When set, this template will be used to create the content instead of the Content property.

C#
public DataTemplate ContentTemplate { get; set; }
Property Value:

The DataTemplate used to create the popup content, or null if no template is set.

Gets or sets the horizontal offset of the popup from its calculated position based on the placement mode. Positive values move the popup to the right, negative values move it to the left.

C#
public double HorizontalOffset { get; set; }
Property Value:

The horizontal offset value in device-independent units. The default value is 0.

Gets or sets a value indicating whether the popup is modal and prevents interaction with the underlying content. When modal, the popup displays an overlay background and captures all input until closed.

C#
public bool IsModal { get; set; }
Property Value:

true if the popup is modal and blocks interaction with underlying content; otherwise, false. The default value is false.

Gets or sets a value indicating whether the popup is currently open and visible.

C#
public bool IsOpen { get; set; }
Property Value:

true if the popup is open and visible; otherwise, false. The default value is false.

Gets or sets the background color of the overlay area outside the popup content when the popup is modal. This color is applied to the area that covers the underlying content when IsModal is true.

C#
public Color OutsideBackgroundColor { get; set; }
Property Value:

The Color of the modal overlay background. The default value is .

Gets or sets the placement mode that determines how the popup is positioned relative to its placement target. The popup may be repositioned automatically to ensure it remains visible within screen bounds.

C#
public PlacementMode Placement { get; set; }
Property Value:

A PlacementMode value that specifies the popup placement. The default value is Bottom.

PlacementTarget

VisualElement

Gets or sets the visual element that the popup is positioned relative to. If not set, the popup will be positioned relative to the application's main page.

C#
public VisualElement PlacementTarget { get; set; }
Property Value:

The VisualElement used as the placement target, or null to use the default placement target.

Gets or sets the vertical offset of the popup from its calculated position based on the placement mode. Positive values move the popup down, negative values move it up.

C#
public double VerticalOffset { get; set; }
Property Value:

The vertical offset value in device-independent units. The default value is 0.