Struct PopupCloseReason
Represents the reason why a popup was closed. This struct encapsulates the reason for closing and optionally the key or character that caused the closure.
public readonly struct PopupCloseReason
Constructors
- PopupCloseReason()
Initializes a new instance of the PopupCloseReason struct.
- PopupCloseReason(Key)
Initializes a new instance of the PopupCloseReason struct.
- PopupCloseReason(CloseReason)
Initializes a new instance of the PopupCloseReason struct.
- PopupCloseReason(char)
Initializes a new instance of the PopupCloseReason struct.
Fields
- ClickContainer
Gets a PopupCloseReason instance that indicates the popup was closed by clicking outside the popup and inside the container.
- FocusLost
Gets a PopupCloseReason instance that indicates the popup was closed by losing focus.
- MouseOverChanged
Gets a PopupCloseReason instance that indicates the popup was closed by moving the mouse outside the popup.
- Other
Gets a PopupCloseReason instance that indicates the popup was closed by unknown reason.
Properties
- Char
Gets the character that caused the popup to close, if applicable.
- Key
Gets the key that caused the popup to close.
- Reason
Gets the reason for closing the popup, if applicable.