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.
- C#
- VB.NET
public class ContainerControl : ScrollableControl, IContainerControl, IContainerControl
Public Class ContainerControl
Inherits ScrollableControl
Implements IContainerControl, IContainerControl
Constructors
ContainerControl()
Initializes a new instance of the ContainerControl class.
Properties
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)
ActiveControl
Control: Returns or sets the active control on the container control.
Throws:
- ArgumentException The Control assigned could not be activated.
AutoScaleFactor
SizeF: Returns the scaling factor between the current and design-time automatic scaling dimensions.
BindingContext
BindingContext: Returns or sets the BindingContext for the control.
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)
ParentForm
Form: Returns the Form that the container control is assigned to.
ParentPage
Page: Returns the Page that the container control is assigned to.
RightToLeftLayout
Boolean: Enables or disables right-to-left layout when the value of RightToLeft is Yes (Default: False)
Methods
Dispose(disposing)
Disposes the page and related resources.
| Parameter | Type | Description |
|---|---|---|
| disposing | Boolean | true when this method is called by the application rather than a finalizer. |
FocusActiveControl()
Sets the focus to the active control.
OnAccelerator(e)
Fires the Accelerator event.
| Parameter | Type | Description |
|---|---|---|
| e | AcceleratorEventArgs | A AcceleratorEventArgs that contains the event data. |
OnAutoValidateChanged(e)
Fires the AutoValidateChanged event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | A EventArgs that contains the event data. |
OnCreateControl()
Raised when the control is created.
OnFontChanged(e)
Fires the FontChanged event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | A EventArgs that contains the event data. |
OnParentFontChanged(e)
Fires the FontChanged event when the Font property value of the control's container changes.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | An EventArgs that contains the event data. |
OnRightToLeftLayoutChanged(e)
Fires the RightToLeftLayoutChanged event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | A EventArgs that contains the event data. |
OnWebEvent(e)
Processes the event from the client.
| Parameter | Type | Description |
|---|---|---|
| e | WisejEventArgs | Event arguments. |
OnWebRender(config)
Renders the client component.
| Parameter | Type | Description |
|---|---|---|
| config | Object | Dynamic configuration object. |
ProcessKeyPreview(e)
Processes a key event before the KeyDown and KeyUp events.
| Parameter | Type | Description |
|---|---|---|
| e | WisejEventArgs | A WisejEventArgs that contains the event data. |
Returns: Boolean. true if the key event was processed by the control; otherwise false.
Select(directed, forward)
Activates a child control. Optionally specifies the direction in the tab order to select the control from.
| Parameter | Type | Description |
|---|---|---|
| directed | Boolean | true to specify the direction of the control to select; otherwise, false. |
| forward | Boolean | true to move forward in the tab order; false to move backward in the tab order. |
Returns: Control.
Validate()
Validates the last unvalidated control and its ancestors up through, but not including the current control.
Returns: Boolean.
Validate(checkAutoValidate)
Validates the last unvalidated control and its ancestors up through, but not including the current control.
| Parameter | Type | Description |
|---|---|---|
| checkAutoValidate | Boolean | If 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
Accelerator
AcceleratorEventHandler Fired when one of the Accelerators key is pressed.
RightToLeftLayoutChanged
EventHandler Fired when the value of the RightToLeftLayout property changes.
Inherited By
| Name | Description |
|---|---|
| FileDialogUI | UI implementation for the FileDialog class. |
| FolderBrowserDialogUI | UI implementation for the FolderDialog class. |
| Form | Represents a window or dialog box that makes up an application's user interface. |
| Page | Represents 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. |
| SplitContainer | Represents a control consisting of a movable bar that divides a container's display area into two resizable panels. |
| UserControl | Provides an empty control that can be used to create other controls. |
| DataRepeater | Displays data in a customizable list format. |
| Desktop | Represents a desktop container that can host floating windows. |
| UserPopup | Provides an popup container that can be attached to other controls. |
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IBindableComponent | Bindable components implement this interface. |
| IContainerControl | Provides the functionality for a control to act as a parent for other controls. |
| IDropTarget | Controls that support drag & drop operations implement this interface. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejControl | All wisej controls derived from the Control class must implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |