Class
PopupManager

This class manages all opened popups per UI thread.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public sealed class PopupManager : IMessageListener

Inheritance: objectPopupManager

Implements: IMessageListener

Properties

ClosePopupOnMouseWheel

Declaration

cs-api-definition
public bool ClosePopupOnMouseWheel { get; set; }

Property Value

bool

Default

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

Declaration

cs-api-definition
public static PopupManager Default { get; }

Property Value

PopupManager

LastActivatedPopup

The popup which was last activated.

Declaration

cs-api-definition
public IPopupControl LastActivatedPopup { get; set; }

Property Value

IPopupControl

Methods

AddPopup(IPopupControl)

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

Declaration

cs-api-definition
public void AddPopup(IPopupControl form)

Parameters

form

IPopupControl

The popup to add.

CloseAll(RadPopupCloseReason)

Closes all popups managed by the PopupManager.

Declaration

cs-api-definition
public void CloseAll(RadPopupCloseReason reason)

Parameters

reason

RadPopupCloseReason

Clarification why all popups need to be closed.

CloseAllToRoot(RadPopupCloseReason, IPopupControl)

Closes all popups from a leaf to the root.

Declaration

cs-api-definition
public void CloseAllToRoot(RadPopupCloseReason reason, IPopupControl leaf)

Parameters

reason

RadPopupCloseReason

The reason why popups are closed.

leaf

IPopupControl

The leaf popup from which to start closing the hierarchy.

ClosePopup(IPopupControl)

Attempts to close an IPopupControl implementation.

Declaration

cs-api-definition
public bool ClosePopup(IPopupControl popup)

Parameters

popup

IPopupControl

The popup to close.

Returns

bool

ContainsPopup(IPopupControl)

Checks if the PopupManager monitors the provided popup.

Declaration

cs-api-definition
public bool ContainsPopup(IPopupControl form)

Parameters

form

IPopupControl

The popup to check for.

Returns

bool

RemovePopup(IPopupControl)

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

Declaration

cs-api-definition
public void RemovePopup(IPopupControl form)

Parameters

form

IPopupControl

The popup to remove.