In This Article

PopupManager Class

Provides a centralized way to manage popups.

public static class PopupManager
Inheritance:
object object

Properties

RootPopupAnchor

Gets the root popup anchor.

public static IPopupAnchor RootPopupAnchor { get; }

Property Value

IPopupAnchor:

The root popup anchor.

TopmostPopupAnchor

Gets the topmost popup anchor.

public static IPopupAnchor TopmostPopupAnchor { get; }

Property Value

IPopupAnchor:

The topmost popup anchor.

Methods

CloseAllPopups()

Closes all open popups.

public static void CloseAllPopups()

ClosePopup(IPopupAnchor)

Closes the popup for the specified IPopupAnchor.

public static void ClosePopup(IPopupAnchor popupAnchor)
Parameter Type Description
popupAnchor IPopupAnchor

The IPopupAnchor to close.

CloseTopmostPopup()

Closes the topmost popup.

public static bool CloseTopmostPopup()

Returns

bool:

true if a popup was closed; otherwise, false.

FocusPopupAnchor(IPopupAnchor, bool)

Focuses the specified IPopupAnchor or a descendant within it.

public static bool FocusPopupAnchor(IPopupAnchor popupAnchor, bool focusWithin)
Parameter Type Description
popupAnchor IPopupAnchor

The IPopupAnchor to focus.

focusWithin bool

Whether to attempt to move focus within the anchor, but not actually on it.

Returns

bool:

true if focus was moved; otherwise, false.

OpenPopup(IPopupAnchor)

Opens the popup for the specified IPopupAnchor.

public static void OpenPopup(IPopupAnchor popupAnchor)
Parameter Type Description
popupAnchor IPopupAnchor

The IPopupAnchor that owns the popup to open.

ProcessKeyDown(IPopupAnchor, KeyEventArgs)

Processes a KeyDown event for the specified IPopupAnchor itself.

public static void ProcessKeyDown(IPopupAnchor popupAnchor, KeyEventArgs e)
Parameter Type Description
popupAnchor IPopupAnchor

The IPopupAnchor whose event needs processing.

e KeyEventArgs

The KeyEventArgs instance containing the event data.

ProcessMenuItemClickWithin(IPopupAnchor)

Processes a menu item click within a parent popup anchor.

public static void ProcessMenuItemClickWithin(IPopupAnchor parentPopupAnchor)
Parameter Type Description
parentPopupAnchor IPopupAnchor

The parent IPopupAnchor.

ProcessMouseCapturedElementClickThrough(IPopupAnchor, MouseEventArgs)

Processes a click-through a mouse-captured element.

public static void ProcessMouseCapturedElementClickThrough(IPopupAnchor popupAnchor, MouseEventArgs e)
Parameter Type Description
popupAnchor IPopupAnchor

The related IPopupAnchor.

e MouseEventArgs

The MouseEventArgs related to the event.

RegisterContextMenuClickThroughTracking<T>()

Registers context menu click-through tracking for the specified root element type.

public static void RegisterContextMenuClickThroughTracking<T>() where T : class
Type Parameters:
T -

The type of root element.

Inherited Members