Table of Contents

Class PopupWindow<T>

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

This class displays content in a separate window that floats over the current application window.

public class PopupWindow<T> : DialogWindow, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, INotifyDataErrorInfo, IWindow, IControl, IDisposable, IWin32Window where T : Control, new()

Type Parameters

T

Type of the main control.

Inheritance
PopupWindow<T>
Implements
Derived

Constructors

PopupWindow()

Initializes a new instance of the PopupWindow<T> class.

Properties

BottomToolBar

Gets bottom toolbar with 'Ok', 'Cancel' and other buttons.

ButtonIdCancel

Gets 'Cancel' button id.

ButtonIdOk

Gets 'Ok' button id.

DefaultBotttomToolBarPadding

Gets or sets default bottom toolbar padding.

DefaultCloseEnabled

Gets default value of the CloseEnabled property.

DefaultHasTitleBar

Gets default value of the HasTitleBar property.

DefaultMaximizeEnabled

Gets default value of the MaximizeEnabled property.

DefaultMinimizeEnabled

Gets default value of the MinimizeEnabled property.

DefaultPadding

Gets or sets default popup window padding.

DefaultTopMost

Gets default value of the TopMost property.

FocusPopupOwnerOnHide

Gets or sets whether to focus PopupOwner control when popup is closed.

HideOnClick

Gets or sets a value indicating whether a popup window disappears automatically when the user clicks left mouse button.

HideOnDeactivate

Gets or sets a value indicating whether a popup window disappears automatically when the user clicks mouse outside it or if it loses focus in any other way.

HideOnDoubleClick

Gets or sets a value indicating whether a popup window disappears automatically when the user double clicks left mouse button.

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 window disappears automatically when the user presses "Escape" key.

MainControl

Gets or sets main control used in the popup window.

MainPanel

Gets main panel (parent of the main control).

ModalPopups

Gets or sets whether popups are shown using ShowModal() (true) or Show() (false).

PopupOwner

Gets or sets owner of the popup window.

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.

ShowCancelButton

Gets or sets whether 'Cancel' button is visible.

ShowOkButton

Gets or sets whether 'Ok' button is visible.

WasShown

Gets whether popup window was already shown at least one time.

Methods

BeforeShowPopup()

Called before popup is shown.

BindEvents(Control?)

Override to bind events to the main control of the popup window.

CreateMainControl()

Creates main control of the popup window.

FocusMainControl()

Focuses MainControl.

GetButtonVisible(ObjectUniqueId)

Gets whether specified toolbar button is visible.

HideOnClickPoint(PointD)

Gets whether mouse click on the specified point in the control closes popup window.

HidePopup(ModalResult)

Hides popup window.

OnClosing(WindowClosingEventArgs)

Raises the Closing event and calls OnClosing(WindowClosingEventArgs). See Closing event description for more details.

OnMainControlMouseDoubleClick(object?, MouseEventArgs)

Default implementation of the left mouse button double click event for the main control of the popup window.

OnMainControlMouseLeftButtonUp(object?, MouseEventArgs)

Default implementation of the left mouse button up event for the popup control.

SetButtonVisible(ObjectUniqueId, bool)

Sets whether specified toolbar button is visible.

SetClientSizeTo(SizeD?)

Sets client size to the specified value.

ShowPopup(PointD, SizeD)

Shows popup at the specified location.

ShowPopup(Control)

Shows popup under bottom left corner of the specified control.

UnbindEvents(Control?)

Override to unbind events to the main control of the popup window.