Skip to main content
Version: 3.5

UserControl

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

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

public class UserControl : ContainerControl

Constructors​

Instance memberUserControl()​

Initializes a new instance of the UserControl class.

Instance memberUserControl(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 memberUserControl(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 memberAutoSize​

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

Instance memberAutoSizeMode​

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

Instance memberAutoValidate​

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

Instance memberBorderStyle​

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

Instance memberDisplayRectangle​

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

Methods​

Instance memberValidateChildren()​

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 memberValidateChildren(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 memberAutoSizeChanged​

EventHandler Fired when the AutoSize property changes.

Instance memberAutoValidateChanged​

EventHandler Fired when the AutoValidate property changes.

Instance memberLoad​

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
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.