Table of Contents

Class PopupControl

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Implements popup control which is shown inside client area of another control.

public class PopupControl : Border, IBaseObjectWithId, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo
Inheritance
PopupControl
Implements

Constructors

PopupControl()

Initializes a new instance of the PopupControl class.

Properties

AcceptOnLostFocus

Gets or sets whether popup should be closed with Accepted result when it lost focus.

AcceptOnSpace

Gets or sets a value indicating whether a popup window disappears automatically when the user presses "Space" key.

AcceptOnTab

Gets or sets a value indicating whether a popup window disappears automatically when the user presses "Tab" key.

CancelOnLostFocus

Gets or sets whether popup should be closed with Canceled result when it lost focus.

Container

Gets or sets container where popup will be shown.

FocusContainerOnClose

Gets or sets whether to focus Container when popup is closed.

FocusParentOnShow

Gets or sets whether to focus parent control when popup is shown.

HideOnClickParent

Gets or sets a value indicating whether a popup disappears automatically when the user clicks mouse outside it in the client area of the parent control.

HideOnEnter

Gets or sets a value indicating whether a popup window disappears automatically when the user presses "Enter" key.

HideOnEscape

Gets or sets a value indicating whether a popup disappears automatically when the user presses "Escape" key.

HideOnMouseLeave

Gets or sets a value indicating whether a popup disappears automatically when the mouse pointer leaves the popup control.

PopupResult

Gets or sets the popup result value, which is updated when popup is closed. This property is set to None at the moment when popup is shown.

Methods

Close()

Closes popup window and raises Closed event.

Close(ModalResult)

Sets PopupResult and calls Close().

CloseWhenIdle(ModalResult)

Closes popup control when application goes to the idle state.

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

GetPopupResult(CloseReason)

Gets popup result using the specified PopupControl.CloseReason.

OnBeforeChildKeyDown(object?, KeyEventArgs)

Called before the KeyDown event of the child control is raised.

OnBeforeParentKeyDown(object?, KeyEventArgs)

Called before the KeyDown event of the Parent is raised.

OnBeforeParentMouseDown(object?, MouseEventArgs)

Called before the MouseDown event of the Parent is raised.

OnChildLostFocus(object?, LostFocusEventArgs)

This method is invoked when the control's child lost focus.

OnLostFocus(EventArgs)

This method is invoked when the control lost focus.

OnVisibleChanged(EventArgs)

Called when the value of the Visible property changes.

Events

Closed

Occurs when popup is closed