ClassPopupManager
This class manages all opened popups per UI thread.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public sealed class PopupManager : IMessageListener
Inheritance: objectPopupManager
Implements:
Properties
Default
Gets the only instance of the PopupManager class. Other instances can not be created.
Declaration
public static PopupManager Default { get; }
Property Value
LastActivatedPopup
The popup which was last activated.
Declaration
public IPopupControl LastActivatedPopup { get; set; }
Property Value
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
public void AddPopup(IPopupControl form)
Parameters
form
The popup to add.
CloseAll(RadPopupCloseReason)
Closes all popups managed by the PopupManager.
Declaration
public void CloseAll(RadPopupCloseReason reason)
Parameters
reason
Clarification why all popups need to be closed.
CloseAllToRoot(RadPopupCloseReason, IPopupControl)
Closes all popups from a leaf to the root.
Declaration
public void CloseAllToRoot(RadPopupCloseReason reason, IPopupControl leaf)
Parameters
reason
The reason why popups are closed.
leaf
The leaf popup from which to start closing the hierarchy.
ClosePopup(IPopupControl)
Attempts to close an IPopupControl implementation.
Declaration
public bool ClosePopup(IPopupControl popup)
Parameters
popup
The popup to close.
Returns
ContainsPopup(IPopupControl)
Checks if the PopupManager monitors the provided popup.
Declaration
public bool ContainsPopup(IPopupControl form)
Parameters
form
The popup to check for.
Returns
RemovePopup(IPopupControl)
Removes the provided popup from the popups of the PopupManager and unregisters the message hook if there are no more popups.
Declaration
public void RemovePopup(IPopupControl form)
Parameters
form
The popup to remove.