Skip to main content
Version: 4.1

Desktop

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a desktop container that can host floating windows.

public class Desktop : ContainerControl, IWisejWindow, IWisejDesignTarget

Constructors​

Instance member Desktop()​

Initializes a new instance of the Desktop class.

Properties​

Instance member Active​

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

Instance member AutoHideTaskbar​

Boolean: Returns or sets whether the taskbar is hidden automatically when there are no opened windows or no windows with the property ShowInTaskbar set to true. (Default: False)

Instance member DisplayRectangle​

Rectangle: Returns a rectangle that represents the inner dimensions of the Desktop control.

Default value is {X=0,Y=0,Width=200,Height=52} (System.Drawing.Rectangle)

Instance member Dock​

DockStyle: Returns or sets which control borders are docked to its parent control and determines how a control is resized with its parent. (Default: None)

Instance member Height​

Int32: Returns or sets the height of the page.

Instance member IsTaskbarVisible​

Boolean: Returns whether the taskbar is currently visible. (Default: True)

Instance member Items​

DesktopTaskBarItemCollection: Returns the collection of DesktopTaskBarItem controls displayed in the taskbar of the desktop control.

The default value is a new DesktopTaskBarItemCollection

Instance member Location​

Point: Returns or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.

Instance member Size​

Size: Returns the height and width of the page.

Instance member TaskbarAlignment​

HorizontalAlignment: Return or sets the alignment of the Items in the taskbar. (Default: Left)

Instance member TaskbarPosition​

Position: Return or sets the position of the taskbar to one of the four sides indicated by the Position values. (Default: Bottom)

Instance member TaskbarSize​

Int32: Returns the height or width of the taskbar in the current theme, depending on the value of TaskbarPosition.

Instance member Text​

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

Instance member Wallpaper​

String: Returns or sets the wallpaper image. (Default: "")

Instance member Width​

Int32: Returns or sets the width of the page.

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.

Protected member OnActivated(e)​

Fires the Activated event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnAddReferences(items)​

Returns a collection of referenced components or collection of components.

ParameterTypeDescription
itemsIList

Protected member OnCreateControl()​

Creates the page.

Protected member OnDeactivate(e)​

Fires the Deactivate event.

ParameterTypeDescription
eEventArgsThe EventArgs that contains the event data.

Instance member OnItemClick(e)​

Fires the ItemClick event.

ParameterTypeDescription
eDesktopTaskBarItemClickEventArgsA DesktopTaskBarItemClickEventArgs that contains the event data.

Instance member OnItemDoubleClick(e)​

Fires the ItemClick event.

ParameterTypeDescription
eDesktopTaskBarItemClickEventArgsA DesktopTaskBarItemClickEventArgs that contains the event data.

Protected member OnLoad(e)​

Fires the Load event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnParentChanged(e)​

Raises the ParentChanged event.

ParameterTypeDescription
eEventArgsA System.EventArgs that contains the event data.

Protected member OnParentVisibleChanged(e)​

Fires the VisibleChanged event when the Visible property value of the control's container changes.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnTaskbarAlignmentChanged(e)​

Fires the TaskbarAlignmentChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnTaskbarPositionChanged(e)​

Fires the TaskbarPositionChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnTaskbarVisibleChanged(e)​

Fires the TaskbarVisibleChanged 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.

Events​

Instance member Activated​

EventHandler Fired when the desktop becomes active, and it's the new Desktop.

Instance member Deactivate​

EventHandler Fired when the desktop is deactivated and it's no longer the Desktop.

Instance member ItemClick​

DesktopTaskBarItemClickEventHandler Fired when a DesktopTaskBarItem on the Desktop is clicked.

Instance member ItemDoubleClick​

DesktopTaskBarItemClickEventHandler Fired when a DesktopTaskBarItem on the Desktop is double clicked.

Instance member Load​

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

Instance member TaskbarAlignmentChanged​

EventHandler Occurs when the property TaskbarAlignment changes value.

Instance member TaskbarPositionChanged​

EventHandler Occurs when the property TaskbarPosition changes value.

Instance member TaskbarVisibleChanged​

EventHandler Occurs when the property AutoHideTaskbar is set to true and the TaskBar is either hidden or shown.

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