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.
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.
OnActivated(e)

Fires the Activated event.
OnCreateControl()

Raised when the control is created.
OnDeactivate(e)

Fires the Deactivate event.
OnLoad(e)

Fires the Load event.
OnMouseDown(e)

OnParentChanged(e)

Raises the ParentChanged event.
OnWebEvent(e)

Processes the event from the client.
OnWebRender(config)

Renders the client component.
OnWebUpdate(state)

Updates the client component using the state information.
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 .
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
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?