Page

Wisej.Web.Page

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.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

Page()

Initializes a new instance of the Page class.

Page(controls)

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

Name
Type
Description

controls

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

Properties

AcceptButton

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

Active

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

ActivePage

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

AutoScroll

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

AutoValidate

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

CancelButton

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

ClientArea

Rectangle: Returns the client rectangle to use in the designer.

Height

Int32: Returns or sets the height of the page.

Size

Size: Returns the height and width of the page.

Text

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: "")

Width

Int32: Returns or sets the width of the page.

Methods

Dispose(disposing)

Disposes the page and related resources.

Parameter
Type
Description

disposing

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

OnActivated(e)

Fires the Activated event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnCreateControl()

Raised when the control is created.

OnDeactivate(e)

Fires the Deactivate event.

Parameter
Type
Description

e

The EventArgs that contains the event data.

OnLoad(e)

Fires the Load event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnMouseDown(e)

Parameter
Type
Description

e

A MouseEventArgs that contains the event data.

OnParentChanged(e)

Raises the ParentChanged event.

Parameter
Type
Description

e

A System.EventArgs that contains the event data.

OnWebEvent(e)

Processes the event from the client.

Parameter
Type
Description

e

Event arguments.

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

config

Dynamic configuration object.

OnWebUpdate(state)

Updates the client component using the state information.

Parameter
Type
Description

state

Dynamic state 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

Activated

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

Deactivate

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

Load

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

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.

All wisej top-level windows implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?