UserControl

Wisej.Web.UserControl

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

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

public class UserControl : ContainerControl

Constructors

UserControl()

Initializes a new instance of the UserControl class.

UserControl(controls)

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

Name
Type
Description

controls

An array of Control objects to be added to the panel.

UserControl(location, size, controls)

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

Name
Type
Description

location

The location of the panel on its parent control.

size

The size of the panel.

controls

An array of Control objects to be added to the panel.

Properties

AutoSize

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

AutoSizeMode

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

AutoValidate

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

BorderStyle

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

DefaultSize

Size:

DisplayRectangle

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

Methods

FocusActiveControl()

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

OnCreateControl()

Raised by the CreateControl method when the control is created.

OnLoad(e)

Fires the Load event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

config

Dynamic configuration object.

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.

ValidateChildren(flags)

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

Parameter
Type
Description

flags

Places 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

AutoSizeChanged

EventHandler Fired when the AutoSize property changes.

AutoValidateChanged

EventHandler Fired when the AutoValidate property changes.

Load

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

Inherited By

Name
Description

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

Implements

Name
Description

Provides access to the UserData and Tag properties associated to the component implementing this interface.

Bindable components implement this interface.

Provides the functionality for a control to act as a parent for other controls.

Controls that support drag & drop operations implement this interface.

All wisej components implement this interface.

All wisej controls derived from the Control class must implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?