Share via


DismissiblePopup Class

Definition

A popup which child controls can signal to be dimissed.

public ref class DismissiblePopup : System::Windows::Controls::Primitives::Popup
public class DismissiblePopup : System.Windows.Controls.Primitives.Popup
type DismissiblePopup = class
    inherit Popup
Public Class DismissiblePopup
Inherits Popup
Inheritance
DismissiblePopup

Remarks

If a control wants to dismiss the popup then they should execute the DismissPopupCommand on a target in the popup window.

Constructors

DismissiblePopup()

Constructs an instance of DismissablePopup.

Fields

CloseOnEscapeProperty

Identifies the CloseOnEscape dependency property.

DismissPopupCommand

A command which child controls can use to tell the popup to close.

FocusChildOnOpenProperty

Identifies the FocusChildOnOpen dependency property.

SetFocusOnCloseElementProperty

Identifies the SetFocusOnCloseElement dependency property.

SetFocusOnCloseProperty

Identifies the SetFocusOnClose dependency property.

Properties

CloseOnEscape

Gets or sets a value indicating whether the popup closes when ESC is pressed.

FocusChildOnOpen

Gets or sets a value indicating whether focus should be set on the child when the popup opens.

SetFocusOnClose

Indicates whether the focus returns to either a defined by the FocusOnCloseTarget dependency property UIElement or PlacementTarget or not.

SetFocusOnCloseElement

If the SetFocusOnClose property is set True and this property is set to a valid UIElement, focus returns to this UIElement after the DismissiblePopup is closed.

Methods

OnClosed(EventArgs)

Responds when the value of the IsOpen property changes from to true to false.

OnCloseOnEscapeChanged(PropertyChangedEventArgs<Boolean>)

Called when CloseOnEscape property changes.

OnDismissPopupExecuted(ExecutedRoutedEventArgs)

Called when DismissPopup executes.

OnFocusChildOnOpenChanged(PropertyChangedEventArgs<Boolean>)

Called when FocusChildOnOpen property changes.

OnKeyDown(KeyEventArgs)

Provides class handling for the KeyDown routed event that occurs when the user presses a key while this control has focus.

OnOpened(EventArgs)

Responds to the condition in which the value of the IsOpen property changes from false to true.

OnSetFocusOnCloseChanged(PropertyChangedEventArgs<Boolean>)

Called when SetFocusOnClose property changes.

OnSetFocusOnCloseElementChanged(PropertyChangedEventArgs<UIElement>)

Called when SetFocusOnCloseElement property changes.

Events

CloseOnEscapeChanged

Occurs when CloseOnEscape property changes.

FocusChildOnOpenChanged

Occurs when FocusChildOnOpen property changes.

SetFocusOnCloseChanged

Occurs when SetFocusOnClose property changes.

SetFocusOnCloseElementChanged

Occurs when SetFocusOnCloseElement property changes.

Applies to