Skip to main content
Version: 4.1

ContainerControl

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Provides focus-management functionality for controls that can function as a container for other controls.

public class ContainerControl : ScrollableControl, IContainerControl, IContainerControl

Constructors

Instance member ContainerControl()

Initializes a new instance of the ContainerControl class.

Properties

Instance member Accelerators

Keys[]: Returns or sets a collection of keys that fire the Accelerator event when the user presses the accelerator key while the focus is on any child control. (Default: null)

Instance member ActiveControl

Control: Returns or sets the active control on the container control.

Throws:

Protected member AutoScaleFactor

SizeF: Returns the scaling factor between the current and design-time automatic scaling dimensions.

Instance member BindingContext

BindingContext: Returns or sets the BindingContext for the control.

Instance member KeyPreview

Boolean: Returns or sets whether the container will receive key events before the event is passed to the control that has focus. (Default: False)

Instance member ParentForm

Form: Returns the Form that the container control is assigned to.

Instance member ParentPage

Page: Returns the Page that the container control is assigned to.

Instance member RightToLeftLayout

Boolean: Enables or disables right-to-left layout when the value of RightToLeft is Yes (Default: False)

Methods

Protected member Dispose(disposing)

Disposes the page and related resources.

ParameterTypeDescription
disposingBooleantrue when this method is called by the application rather than a finalizer.

Instance member FocusActiveControl()

Sets the focus to the active control.

Protected member OnAccelerator(e)

Fires the Accelerator event.

ParameterTypeDescription
eAcceleratorEventArgsA AcceleratorEventArgs that contains the event data.

Protected member OnAutoValidateChanged(e)

Fires the AutoValidateChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnCreateControl()

Raised when the control is created.

Protected member OnFontChanged(e)

Fires the FontChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnParentFontChanged(e)

Fires the FontChanged event when the Font property value of the control's container changes.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnRightToLeftLayoutChanged(e)

Fires the RightToLeftLayoutChanged event.

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.

Protected member ProcessKeyPreview(e)

Processes a key event before the KeyDown and KeyUp events.

ParameterTypeDescription
eWisejEventArgsA WisejEventArgs that contains the event data.

Returns: Boolean. true if the key event was processed by the control; otherwise false.

Protected member Select(directed, forward)

Activates a child control. Optionally specifies the direction in the tab order to select the control from.

ParameterTypeDescription
directedBooleantrue to specify the direction of the control to select; otherwise, false.
forwardBooleantrue to move forward in the tab order; false to move backward in the tab order.

Returns: Control.

Instance member Validate()

Validates the last unvalidated control and its ancestors up through, but not including the current control.

Returns: Boolean.

Instance member Validate(checkAutoValidate)

Validates the last unvalidated control and its ancestors up through, but not including the current control.

ParameterTypeDescription
checkAutoValidateBooleanIf true, the value of the AutoValidate property is used to determine if validation should be performed; if false, validation is unconditionally performed.

Returns: Boolean.

Events

Instance member Accelerator

AcceleratorEventHandler Fired when one of the Accelerators key is pressed.

Instance member RightToLeftLayoutChanged

EventHandler Fired when the value of the RightToLeftLayout property changes.

Inherited By

NameDescription
FileDialogUIUI implementation for the FileDialog class.
FolderBrowserDialogUIUI implementation for the FolderDialog class.
FormRepresents a window or dialog box that makes up an application's user interface.
PageRepresents a web page that fills the browser and acts as the main container for the application. An application can have only one active main page at any given time.
SplitContainerRepresents a control consisting of a movable bar that divides a container's display area into two resizable panels.
UserControlProvides an empty control that can be used to create other controls.
DataRepeaterDisplays data in a customizable list format.
DesktopRepresents a desktop container that can host floating windows.
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.