Skip to main content
Version: 3.5

Page

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

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.

public class Page : ContainerControl, IWisejWindow

To show the page assign it to the MainPage property.

Constructors​

Instance memberPage()​

Initializes a new instance of the Page class.

Instance memberPage(controls)​

Initializes a new instance of the Page class with the specified initial settings.

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

Properties​

Instance memberAcceptButton​

IButtonControl: Returns or sets the button that is clicked when the user presses the ENTER key. (Default: null)

Instance memberActive​

Boolean: Returns true if this page instance is the currently active page. It is the same as comparing the instance with MainPage.

Static memberActivePage​

Page: Returns the currently active page for this application. It's the same as MainPage, it is added to be consistent with ActiveForm.

Instance memberAutoScroll​

Boolean: Returns or sets whether the container enables the user to scroll to any controls placed outside of its visible boundaries. (Default: False)

Instance memberAutoValidate​

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

Instance memberCancelButton​

IButtonControl: Returns or sets the button control that is clicked when the user presses the ESC key. (Default: null)

Instance memberHeight​

Int32: Returns or sets the height of the page.

Instance memberSize​

Size: Returns the height and width of the page.

Instance memberText​

String: Returns or sets the title of the Page. If the page is the main page, setting the text also changes the title in the browser. (Default: "")

Instance memberWidth​

Int32: Returns or sets the width of the page.

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 memberActivated​

EventHandler Fired when the page becomes active, and it's the new MainPage.

Instance memberDeactivate​

EventHandler Fired when the page is deactivated and it's no longer the MainPage.

Instance memberLoad​

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

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.
IWisejWindowAll wisej top-level windows implement this interface.
IWisejSerializableAllows an object to serialize itself.