Skip to main content
Version: 4.1

UserPopup

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

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

public class UserPopup : UserControl

Constructors

Instance member UserPopup()

Initializes a new instance of the UserPopup control.

Instance member UserPopup(container)

Initializes a new instance of the UserPopup control.

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

Properties

Instance member Alignment

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

Instance member AutoHide

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

Instance member BackColor

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

Instance member Offset

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

Instance member Opener

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

Instance member PlacementModeX

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 member PlacementModeY

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 member TabStop

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 member Visible

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

Methods

Instance member Close()

Closes the UserPopup.

Protected member OnClosed(e)

Fires the Closed event when the popup is closed.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebEvent(e)

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member ShowPopup(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 member ShowPopup(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 member ShowPopup(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 member ShowPopupAsync(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 member ShowPopupAsync(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 member ShowPopupAsync(location)

Asynchronously displays the UserPopup at the specified screen location.

ParameterTypeDescription
locationPointThe location in pixels, relative to the screen.

Returns: Task.

Events

Instance member Closed

EventHandler Fired when the UserPopup control is closed.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
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.