Skip to main content
Version: 3.5

UserPopup

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides an popup container that can be attached to other controls.

public class UserPopup : UserControl

Constructors

Instance memberUserPopup()

Initializes a new instance of the UserPopup control.

Instance memberUserPopup(container)

Initializes a new instance of the UserPopup control.

NameTypeDescription
containerIContainerA IContainer that represents the container for the popup control.

Properties

Instance memberAlignment

Placement: Returns or sets the alignment side and position of the popup. The actual location depends on the placement methods defined by the PlacementX and PlacementY properties. (Default: BottomLeft)

Instance memberAutoHide

Boolean: Determines whether the popup will close automatically when the user clicks outside of the control. (Default: True)

Instance memberBackColor

Color: Returns or sets the background color for the control.

Instance memberOffset

Padding: Returns or sets the offset in pixels from the calculated position of the popup.

Instance memberOpener

IWisejComponent: Returns the opener Control. It may be null if the popup was shown without specifying an opener.

Instance memberPlacementModeX

PlacementMode: Returns or sets the method used to calculate the position of the popup according to the value of the Alignment property. (Default: KeepAlign)

Instance memberPlacementModeY

PlacementMode: Returns or sets the method used to calculate the position of the popup according to the value of the Alignment property. (Default: KeepAlign)

Instance memberTabStop

Boolean: Returns or sets whether the user can give the focus to this control using the TAB key and the Focusable property is set to true. (Default: True)

Instance memberVisible

Boolean: Returns or sets whether the control and all its child controls are displayed.

Methods

Instance memberClose()

Closes the UserPopup.

Instance memberShowPopup(opener, onclose)

Shows the UserPopup in relation to the specified opener .

ParameterTypeDescription
openerIWisejComponentThe IWisejComponent that this UserPopup is bound to. It can be any component that is visually displayed on the client side, including Control, DataGridViewColumn, ColumnHeader, DesktopTaskBarItem, ToolBarButton.
onclose optionalAction<UserPopup>Optional async handler for the close event; called when the popup panel disappears. It's the equivalent of handling the event.

Throws:

Instance memberShowPopup(x, y, onclose)

Shows the UserPopup at the specified screen coordinates.

ParameterTypeDescription
xInt32The horizontal position in pixels, relative to the screen.
yInt32The vertical position in pixels, relative to the screen.
onclose optionalAction<UserPopup>Optional async handler for the close event; called when the popup panel disappears. It's the equivalent of handling the event.

Instance memberShowPopup(location, onclose)

Shows the UserPopup at the specified screen location.

ParameterTypeDescription
locationPointThe location in pixels, relative to the screen.
onclose optionalAction<UserPopup>Optional async handler for the close event; called when the popup panel disappears. It's the equivalent of handling the event.

Instance memberShowPopupAsync(opener)

Asynchronously displays the UserPopup in relation to the specified opener .

ParameterTypeDescription
openerIWisejComponentThe IWisejComponent that this UserPopup is bound to. It can be any component that is visually displayed on the client side, including Control, DataGridViewColumn, ColumnHeader, DesktopTaskBarItem, ToolBarButton.

Returns: Task.

Throws:

Instance memberShowPopupAsync(x, y)

Asynchronously displays the UserPopup at the specified screen coordinates.

ParameterTypeDescription
xInt32The horizontal position in pixels, relative to the screen.
yInt32The vertical position in pixels, relative to the screen.

Returns: Task.

Instance memberShowPopupAsync(location)

Asynchronously displays the UserPopup at the specified screen location.

ParameterTypeDescription
locationPointThe location in pixels, relative to the screen.

Returns: Task.

Events

Instance memberClosed

EventHandler Fired when the UserPopup control is closed.

Implements

NameDescription
IBindableComponentBindable components implement this interface.
IContainerControlProvides the functionality for a control to act as a parent for other controls.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.