Desktop

Wisej.Web.Desktop

Namespace: Wisej.Web

Assembly: Wisej.Framework (2.5.0.0)

Represents a desktop container that can host floating windows.

public class Desktop : ContainerControl, IWisejWindow, IWisejDesignTarget

Constructors

Desktop()

Initializes a new instance of the Desktop class.

Properties

Active

Booleanarrow-up-right: Returns true if this desktop instance is the currently active desktop. It is the same as comparing the instance with Desktop.

AutoHideTaskbar

Booleanarrow-up-right: 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.

DisplayRectangle

Rectanglearrow-up-right: Returns a rectangle that represents the inner dimensions of the Desktop control.

Dock

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

Height

Int32arrow-up-right: Returns or sets the height of the page.

IsTaskbarVisible

Booleanarrow-up-right: Returns whether the taskbar is currently visible.

Items

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

Location

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

Size

Sizearrow-up-right: Returns the height and width of the page.

TaskbarAlignment

HorizontalAlignment: Return or sets the alignment of the content of the taskbar.

When using Left the

TaskbarPosition

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

TaskbarSize

Int32arrow-up-right: Returns the height or width of the taskbar in the current theme, depending on the value of TaskbarPosition.

Text

Stringarrow-up-right: 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.

Wallpaper

Stringarrow-up-right: Returns or sets the wallpaper image.

Width

Int32arrow-up-right: Returns or sets the width of the page.

Events

Activated

EventHandlerarrow-up-right Fired when the desktop becomes active, and it's the new Desktop.

Deactivate

EventHandlerarrow-up-right Fired when the desktop is deactivated and it's no longer the Desktop.

ItemClick

DesktopTaskBarItemClickEventHandler Fired when a DesktopTaskBarItem on the Desktop is clicked.

ItemDoubleClick

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

Load

EventHandlerarrow-up-right Fired before the desktop becomes visible for the first time.

TaskbarAlignmentChanged

EventHandlerarrow-up-right Occurs when the property TaskbarAlignment changes value.

TaskbarPositionChanged

EventHandlerarrow-up-right Occurs when the property TaskbarPosition changes value.

TaskbarVisibleChanged

EventHandlerarrow-up-right Occurs when the property AutoHideTaskbar is set to true and the TaskBar is either hidden or shown.

Implements

Name
Description

Bindable components implement this interface.

Provides the functionality for a control to act as a parent for other controls.

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?