In This Article

IPopupAnchor Interface

Provides the base requirements for an element that has a popup.

public interface IPopupAnchor

Properties

IsKeyboardFocusWithinPopup

Indicates whether keyboard focus is within the child popup.

bool IsKeyboardFocusWithinPopup { get; }

Property Value

bool:

true if keyboard focus is within the child popup; otherwise, false.

IsPopupOpen

Indicates whether a child popup is open.

bool IsPopupOpen { get; set; }

Property Value

bool:

true if the a child popup is open; otherwise, false.

PopupChild

The child element within the popup.

UIElement? PopupChild { get; }

Property Value

UIElement

PopupMenu

The popup menu displayed by the popup anchor.

ContextMenu? PopupMenu { get; }

Property Value

ContextMenu

PopupStaysOpen

Indicates whether the popup stays open, even when the popup loses focus, until explicitly closed.

bool PopupStaysOpen { get; }

Property Value

bool:

true if the popup stays open, even when the popup loses focus, until explicitly closed.

SupportsAltDownToOpen

Indicates whether the element supports pressing Alt+Down to open the popup.

bool SupportsAltDownToOpen { get; }

Property Value

bool:

true if the element supports pressing Alt+Down to open the popup; otherwise, false.

WasPopupOpenedWithKeyboard

Indicates whether the child popup was opened via the keyboard.

bool WasPopupOpenedWithKeyboard { get; set; }

Property Value

bool:

true if the child popup was opened via the keyboard; otherwise, false.

Extension Methods