Skip to main content
Version: 4.1

UserControl

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Provides an empty control that can be used to create other controls.

public class UserControl : ContainerControl

Constructors

Instance member UserControl()

Initializes a new instance of the UserControl class.

Instance member UserControl(controls)

Initializes a new instance of the UserControl class with the specified settings.

NameTypeDescription
controlsControl[]An array of Control objects to be added to the panel.

Instance member UserControl(location, size, controls)

Initializes a new instance of the UserControl class with the specified settings.

NameTypeDescription
locationPointThe location of the panel on its parent control.
sizeSizeThe size of the panel.
controlsControl[]An array of Control objects to be added to the panel.

Properties

Instance member AutoSize

Boolean: Returns or sets whether the control should automatically resize based on its contents. (Default: False)

Instance member AutoSizeMode

AutoSizeMode: Returns or sets how the control will resize itself. (Default: GrowOnly)

Instance member AutoValidate

AutoValidate: Returns or sets how the control performs validation when the user changes focus to another control.

Instance member BorderStyle

BorderStyle: Returns or sets the border style of the user control. (Default: None)

Protected member DefaultSize

Size:

Instance member DisplayRectangle

Rectangle: Returns the rectangle that represents the virtual display area of the control.

Methods

Instance member FocusActiveControl()

Selects the active control. If the active control is not focusable, it selects the next focusable control.

Protected member OnCreateControl()

Raised by the CreateControl method when the control is created.

Protected member OnLoad(e)

Fires the Load event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member ValidateChildren()

Validates all selectable child controls in the container, including descendants. This is equivalent to calling ValidateChildren(ValidationConstraints.Selectable). See Selectable for details of exactly which child controls will be validated.

Returns: Boolean. true if all of the children validated successfully; otherwise, false. If called from the Validating or Validated event handlers, this method will always return false.

Instance member ValidateChildren(flags)

Validates all the child controls in the container. Exactly which controls are validated and which controls are skipped is determined by flags .

ParameterTypeDescription
flagsValidationConstraintsPlaces restrictions on which controls have their Validating event raised.

Returns: Boolean. true if all of the children validated successfully; otherwise, false. If called from the Validating or Validated event handlers, this method will always return false.

Events

Instance member AutoSizeChanged

EventHandler Fired when the AutoSize property changes.

Instance member AutoValidateChanged

EventHandler Fired when the AutoValidate property changes.

Instance member Load

EventHandler Occurs before the control becomes visible for the first time.

Inherited By

NameDescription
UserPopupProvides an popup container that can be attached to other controls.

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.