New to Telerik UI for WinFormsStart a free 30-day trial

This class manages all opened popups per UI thread.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public sealed class PopupManager : IMessageListener

Inheritance: objectPopupManager

Implements: IMessageListener

Properties

C#
public bool ClosePopupOnMouseWheel { get; set; }

Gets the only instance of the PopupManager class. Other instances can not be created.

C#
public static PopupManager Default { get; }

The popup which was last activated.

C#
public IPopupControl LastActivatedPopup { get; set; }

Methods

Adds a popup form to the popups of the PopupManager and registers a message hook if the form provided is the first one.

C#
public void AddPopup(IPopupControl form)
Parameters:formIPopupControl

The popup to add.

Closes all popups managed by the PopupManager.

C#
public void CloseAll(RadPopupCloseReason reason)
Parameters:reasonRadPopupCloseReason

Clarification why all popups need to be closed.

Closes all popups from a leaf to the root.

C#
public void CloseAllToRoot(RadPopupCloseReason reason, IPopupControl leaf)
Parameters:reasonRadPopupCloseReason

The reason why popups are closed.

leafIPopupControl

The leaf popup from which to start closing the hierarchy.

Attempts to close an IPopupControl implementation.

C#
public bool ClosePopup(IPopupControl popup)
Parameters:popupIPopupControl

The popup to close.

Returns:

bool

Checks if the PopupManager monitors the provided popup.

C#
public bool ContainsPopup(IPopupControl form)
Parameters:formIPopupControl

The popup to check for.

Returns:

bool

Removes the provided popup from the popups of the PopupManager and unregisters the message hook if there are no more popups.

C#
public void RemovePopup(IPopupControl form)
Parameters:formIPopupControl

The popup to remove.