Only this pageAll pages
Powered by GitBook
Couldn't generate the PDF for 755 pages, generation stopped at 100.
Extend with 50 more pages.
1 of 100

v3.5

Loading...

Wisej.Web

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

General

Wisej.NET API

Welcome to the Wisej.NET API reference.

This book covers the full API for the Wisej.Framework assembly only. For an in-depth guide of Wisej.NET features, please refer to the Concepts book. For the extensions API and concepts, please refer to the Extensions book.

Legend

Icon
Description

Concepts & Reference

The concept documentation and the namespace reference are a never-ending work in progress. We update it almost daily. Please check back if what you are looking for is not available.

Skills

We assume that you have a good working knowledge of the following tools and technologies:

  • C# or VB.NET

  • .NET in general

  • Visual Studio

  • JavaScript

ClientCollection

Wisej.Core.ClientCollection

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

List of s using the application.

Constructors

ClientPlatform

Wisej.Core.ClientPlatform

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Represents the client platform used to render the widgets.

Properties

ClientCollection()

Initializes a new instance of ClientCollection.

Properties

Count

Int32: Returns the total number of Client items in the collection.

Item(index)

Client: Returns the Client at the specified index .

Client
Public Class ClientCollection
    Inherits IList(Of Client)
    Implements ICollection(Of Client), IEnumerable(Of Client), IEnumerable
public class ClientCollection : IList<Client>, ICollection<Client>, IEnumerable<Client>, IEnumerable
JavaScripts

String[]: List of javascript files associated with the platform.

Name

String: The name of this platform configuration.

Provider

PlatformProvider: The platform provider.

StyleSheets

String[]: List of style sheets associated with the platform.

Version

Version: Returns the file version of the

Public Class ClientPlatform
public class ClientPlatform

Instance method, or property, or event.

Static method or property or event.

Protected method or property or event.

Deprecated method or property or event.

Client

Wisej.Core.Client

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Represents a unique client using the application.

public class Client
Public Class Client

A browser instance is a single client, regardless of how many sessions are created by that client and how many browser tabs are open. Different browsers a represented as different clients.

Properties

Browsers

: List of browser tabs (for the same browser) that are using the application at the client computer.

ID

: Unique client ID.

IPAddress

: IP Address of the client computer.

SessionCount

: Returns the number of sessions used by this client computer.

ClientProfile

Wisej.Core.ClientProfile

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Definition of the client device.

public class ClientProfile
Public Class ClientProfile

Fields

Name
Type
Description

Properties

Device

: Device type.

Landscape

: Device landscape mode.

MaxScreenWidth

: Maximum screen width.

MaxWidth

: Maximum browser width.

MinScreenWidth

: Minimum screen width.

MinWidth

: Minimum browser width.

Name

: Name of the profile.

UserAgent

: User agent string.

ClientBrowser[]
String
String
Int32

Default

ClientProfile

Returns the default ClientProfile singleton.

String
Nullable<Boolean>
Int32
Int32
Int32
Int32
String
String

Common Dialogs

Buttons

LoadConfigurationEventHandler

Wisej.Core.LoadConfigurationEventHandler

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Represents a method that handles the LoadConfiguration event.

public delegate void LoadConfigurationEventHandler(Object sender, LoadConfigurationEventArgs args)
Public Delegate Sub LoadConfigurationEventHandler(ByVal sender As [Object], ByVal args As LoadConfigurationEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

ClientBrowser

Wisej.Core.ClientBrowser

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Properties of the client browser currently interacting with the application.

Fields

KeyPressEventArgs

Wisej.Web.KeyPressEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the event.

Constructors

PlatformProvider

Wisej.Core.PlatformProvider

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Platforms supported by Wisej.

Fields

LicenseErrorEventArgs

Wisej.Web.LicenseErrorEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the event.

Constructors

BackgroundWorker

Wisej.Web.BackgroundWorker

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Executes an operation on a background task.

Constructors

LayoutEventHandler

Wisej.Web.LayoutEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the event of a .

FileDialogRootCollection

Wisej.Web.FileDialogRootCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represent a collection of the root file systems shown by the implementation.

PinchEventArgs

Wisej.Web.PinchEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for event.

Properties

Application.RequestType

Wisej.Web.Application RequestType

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Type of incoming request. Since 3.5.5

Fields

sender

Object

The source of the event. Always null.

args

LoadConfigurationEventArgs

The event data.

Configuration.LoadConfiguration

Fired when the system needs to load a Wisej configuration file.

Containers

Name
Type
Description

CookieStorage

Returns an instance of the class that represents the "cookies" storage in the browser.

LocalStorage

Returns an instance of the class that represents the "localStorage" object in the browser.

SessionStorage

Returns an instance of the class that represents the "sessionStorage" object in the browser.

Properties

CultureInfo

CultureInfo: Returns the locale declared in the application configuration file or detected from the client browser.

Device

String: Device type. Can be one of "Mobile", "Tablet" or "Desktop".

Features

Object: Returns the set of features supported/not-supported by the browser. Currently we detect: geolocation, webSocket, fullScreen, speechSynthesis, speechRecognition, notification, fullScreen, browserStorage.

IPAddress

String: IP Address of the client computer.

IsDarkMode

Boolean: Returns true if the browser is using dark mode. Since 3.0.10

IsFullScreen

Boolean: Returns true if the browser is in full screen mode.

IsSecure

Boolean: Returns true if the connection is secure.

Language

String: Client language.

OS

String: Client OS. Can be one of "iOS", "Android", "WebOS", "BlackBerry", "MacOS", "Linux", "Windows", "Unix", "Other".

PixelRatio

Double: Returns the ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.

Profiles

ClientProfile[]:

ScreenSize

Size: Screen size.

SessionId

String: Returns the session ID associated with this ClientBrowser.

Size

Size: Browser size. This is the window size, which can be different from the device (or screen) size.

TabId

String: Identifies the browser tab associated with with this ClientBrowser instance.

TimezoneOffset

Int32: Returns the time difference between UTC time and local time, in minutes.

Type

String: Browser type. Can be one of "IE", "Edge", "Chrome", "Opera", "Firefox", "Safari", "Other".

UserAgent

String: Returns the raw user agent string of the client browser.

UserData

Object: Returns a value or map set by the client when loading the application's first HTML page.

An application can use this property to retrieve a custom value on startup. For example, in Default.html add:

On the server side, you can retrieve the user data use at any time like this:

When used in conjunction with an aspx startup page (Default.aspx) it allows the application to retrieve data passed as a POST request and pass it to the Wisej application.

Version

Int32: Browser version.

Public Class ClientBrowser
public class ClientBrowser
KeyPressEventArgs(keyChar)

Initializes a new instance of the KeyPressEventArgs class.

Name
Type
Description

keyChar

The ASCII character corresponding to the key the user pressed.

Properties

Handled

Boolean: Returns or sets whether the KeyPress event was handled.

KeyChar

Char: Returns or sets the character corresponding to the key pressed.

Used By

Name
Description

Represents the method that will handle the event of a .

KeyPress
Public Class KeyPressEventArgs
    Inherits EventArgs
public class KeyPressEventArgs : EventArgs
Name
Description

QXDesktop

Desktop platform by qooxdoo.

Used By

Name
Description

The platform provider.

Public Enum PlatformProvider As [Enum]
public enum PlatformProvider : Enum
LicenseErrorEventArgs(error)

Initializes a new instance of the LicenseErrorEventArgs class.

Name
Type
Description

error

License error.

Properties

Error

String: Indicates the type of license error that has occurred.

LicenseError
Public Class LicenseErrorEventArgs
    Inherits EventArgs
public class LicenseErrorEventArgs : EventArgs
BackgroundWorker()

Initialized a new instance of BackgroundWorker bound to the current session.

Public Class BackgroundWorker
    Inherits BackgroundWorker
public class BackgroundWorker : BackgroundWorker
Parameters
Name
Type
Description

sender

The source of the event.

e

A that contains the event data.

Fired By

Name
Description

Fired when a control should reposition its child controls.

Layout
Control
Public Delegate Sub LayoutEventHandler(ByVal sender As [Object], ByVal e As LayoutEventArgs)
public delegate void LayoutEventHandler(Object sender, LayoutEventArgs e)
Methods

MapPath(filePath)

Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.

Parameter
Type
Description

filePath

Virtual path to map to the corresponding physical path.

Returns: String. The physical path for the IFileSystemProvider implementation.

IFileSystemProvider
FileDialog
Public Class FileDialogRootCollection
    Inherits List(Of )
public class FileDialogRootCollection : List<>
Scale

Double: Returns the calculated scale factor.

Used By

Name
Description

Represents the method that will handle the event.

Pinch
Public Class PinchEventArgs
    Inherits EventArgs
public class PinchEventArgs : EventArgs
Name
Description

DataCount

Request to return the number of records available for a list control.

DataRead

Request to read a data pages for a list control.

Event

Request to process events from the browser.

Load

The application session is being loaded for the first time. See also .

Reload

The application session is being reloaded. See also .

Service

Service (or postback) request to the be processed by a implementation.

Used By

Name
Description

Returns the .

Public Enum RequestType As [Enum]
public enum RequestType : Enum

JavaScript.ClientEvent

Wisej.Web.JavaScript ClientEvent

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represent a JavaScript event and the corresponding code to execute on the client when the event is fired.

public class ClientEvent
Public Class ClientEvent

Constructors

ClientEvent()

Initializes a new instance of .

Properties

Event

: Returns or sets the name of the event. Not all events are available to all controls, which events are fired depends on the widget that corresponds to the control. (Default: null)

JavaScript

: Returns or sets the JavaScript handler for the event. (Default: "")

HelpEventArgs

Wisej.Web.HelpEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the HelpRequested event.

public class HelpEventArgs : EventArgs
Public Class HelpEventArgs
    Inherits EventArgs

Constructors

HelpEventArgs(target)

Initializes a new instance of the class.

Name
Type
Description

Properties

Handled

: Returns or sets a value indicating whether the help event was handled.

Target

: Returns the that had the focus when the user pressed F1.

Used By

Name
Description

WidgetEventHandler

Wisej.Web.WidgetEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that handles the WidgetEvent event.

public delegate void WidgetEventHandler(Object sender, WidgetEventArgs e)
Public Delegate Sub WidgetEventHandler(ByVal sender As [Object], ByVal e As WidgetEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

HashChangedEventArgs

Wisej.Web.HashChangedEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the HashChanged event.

public class HashChangedEventArgs : EventArgs
Public Class HashChangedEventArgs
    Inherits EventArgs

Constructors

HashChangedEventArgs(value)

Initializes a new instance of the class.

Name
Type
Description

Properties

Hash

: The hash string from the client.

Used By

Name
Description

TouchEventArgs

Wisej.Web.TouchEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for Swipe event.

public class TouchEventArgs : EventArgs
Public Class TouchEventArgs
    Inherits EventArgs

Properties

Identifiers

: Returns the unique identifiers for the touch items.

IsMultiTouch

: Returns whether more than one touch is associated with the event target element.

Locations

: Returns the location of the touch items in screen coordinates.

Rotation

: Returns the delta of the rotation since the start of the event, in degrees.

Scale

: Returns the distance between two fingers since the start of the event.

Used By

Name
Description

ControlEventArgs

Wisej.Web.ControlEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the ControlAdded and ControlRemoved events.

public class ControlEventArgs : EventArgs
Public Class ControlEventArgs
    Inherits EventArgs

Constructors

ControlEventArgs(control)

Initializes a new instance of the class for the specified control.

Name
Type
Description

Properties

Control

: Returns the control object used by this event.

Used By

Name
Description

TrackEventArgs

Wisej.Web.TrackEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for Track event.

public class TrackEventArgs : EventArgs
Public Class TrackEventArgs
    Inherits EventArgs

Properties

Axis

: Returns the Axis of the track event.

Location

: Returns the X, Y delta for the track event.

X

: Returns the X delta of the track event.

Y

: Returns Y delta of the track event.

Used By

Name
Description

KeyEventHandler

Wisej.Web.KeyEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the KeyUp or KeyDown event of a Control.

public delegate void KeyEventHandler(Object sender, KeyEventArgs e)
Public Delegate Sub KeyEventHandler(ByVal sender As [Object], ByVal e As KeyEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

RequestEventHandler

Wisej.Web.RequestEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represent a method that handles the BeginRequest, and EndRequest events. Since 3.5.5

public delegate void RequestEventHandler(Object sender, RequestEventArgs e)
Public Delegate Sub RequestEventHandler(ByVal sender As [Object], ByVal e As RequestEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

ResponsiveProfileChangedEventArgs

Wisej.Web.ResponsiveProfileChangedEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the ResponsiveProfileChanged event.

public class ResponsiveProfileChangedEventArgs : EventArgs
Public Class ResponsiveProfileChangedEventArgs
    Inherits EventArgs

Constructors

ResponsiveProfileChangedEventArgs(oldValue, newValue)

Initializes a new instance of the class.

Name
Type
Description

Properties

CurrentProfile

: The new active profile.

PreviousProfile

: The previously active profile.

Used By

Name
Description

ControlEventHandler

Wisej.Web.ControlEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the ControlAdded and ControlRemoved events of the Control class.

public delegate void ControlEventHandler(Object sender, ControlEventArgs e)
Public Delegate Sub ControlEventHandler(ByVal sender As [Object], ByVal e As ControlEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

PaintEventHandler

Wisej.Web.PaintEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the Paint event of a Control.

public delegate void PaintEventHandler(Object sender, PaintEventArgs e)
Public Delegate Sub PaintEventHandler(ByVal sender As [Object], ByVal e As PaintEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

PinchEventHandler

Wisej.Web.PinchEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the Pinch event.

public delegate void PinchEventHandler(Object sender, PinchEventArgs e)
Public Delegate Sub PinchEventHandler(ByVal sender As [Object], ByVal e As PinchEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

PreviewKeyDownEventHandler

Wisej.Web.PreviewKeyDownEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the PreviewKeyDown event.

public delegate void PreviewKeyDownEventHandler(Object sender, PreviewKeyDownEventArgs e)
Public Delegate Sub PreviewKeyDownEventHandler(ByVal sender As [Object], ByVal e As PreviewKeyDownEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

TrackEventHandler

Wisej.Web.TrackEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the Track event.

public delegate void TrackEventHandler(Object sender, TrackEventArgs e)
Public Delegate Sub TrackEventHandler(ByVal sender As [Object], ByVal e As TrackEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

RotateEventArgs

Wisej.Web.RotateEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for Rotate event.

public class RotateEventArgs : EventArgs
Public Class RotateEventArgs
    Inherits EventArgs

Properties

Angle

: Returns a number with the current calculated angle between the primary and secondary active pointers.

Used By

Name
Description

RequestEventArgs

Wisej.Web.RequestEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

public class RequestEventArgs : EventArgs
Public Class RequestEventArgs
    Inherits EventArgs

Constructors

RequestEventArgs(type)

Initializes an for the delegate.

Name
Type
Description

Properties

Type

: Returns the .

Used By

Name
Description

SwipeAxis

Wisej.Web.SwipeAxis

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Indicates the axis of the swipe gesture.

public enum SwipeAxis : Enum
Public Enum SwipeAxis As [Enum]

Fields

Name
Description

Used By

Name
Description

RotateEventHandler

Wisej.Web.RotateEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the Rotate event.

public delegate void RotateEventHandler(Object sender, RotateEventArgs e)
Public Delegate Sub RotateEventHandler(ByVal sender As [Object], ByVal e As RotateEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

Screen

Wisej.Web.Screen

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the display on the client device.

public class Screen
Public Class Screen

Properties

Bounds

: Returns the size of the display of the client device, regardless of the orientation.

DeviceName

: Returns the device name associated with a display.

WorkingArea

: Returns the working area of the browser. The working area is the desktop area of the browser, excluding taskbars, docked windows, and docked tool bars.

SwipeDirection

Wisej.Web.SwipeDirection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Indicates the direction of the swipe gesture.

Fields

Application.PageCollection

Wisej.Web.Application PageCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Holds the collection of all top-level application pages.

Properties

PaintEventArgs

Wisej.Web.PaintEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the event.

Constructors

LoadConfigurationEventArgs

Wisej.Core.LoadConfigurationEventArgs

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Specifies the event arguments for the event.

Properties

HashChangedEventHandler

Wisej.Web.HashChangedEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the event.

Parameters

KeyPressEventHandler

Wisej.Web.KeyPressEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the event of a .

HelpEventHandler

Wisej.Web.HelpEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the event of a .

LicenseErrorEventHandler

Wisej.Web.LicenseErrorEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the event.

Parameters

MenuButtonItemClickedEventHandler

Wisej.Web.MenuButtonItemClickedEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the event of a control.

SwipeEventHandler

Wisej.Web.SwipeEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the event.

Parameters

SessionReference<T>

Wisej.Web.SessionReference<T>

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Keeps a to an singleton instance of T stored in the current . Since 3.2.7

Use to retrieve the session-singleton instance of your object of type T .

QueryContinueDragEventHandler

Wisej.Web.QueryContinueDragEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the event of a .

Application.FormCollection

Wisej.Web.Application FormCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Holds the collection of all top-level application forms.

Properties

QueryContinueDragEventArgs

Wisej.Web.QueryContinueDragEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the event.

Constructors

MenuButtonItemClickedEventArgs

Wisej.Web.MenuButtonItemClickedEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the event.

Constructors

AccordionAction

Wisej.Web.AccordionAction

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Defines values representing events.

Fields


<script>
Wisej.userData = {
value1: 100,
someName: "test"
};
</script>


int value1 = Application.Browser.UserData.value1;
string value2 = Application.Browser.UserData.someName;

sender

Object

The source of the event.

e

WidgetEventArgs

A WidgetEventArgs that contains the event data.

Control.WidgetEvent

Fired when the control receives a custom event from the client.

sender

Object

The source of the event.

e

KeyEventArgs

A KeyEventArgs that contains the event data.

Control.KeyDown

Fired when a key is pressed while the control has focus.

Control.KeyUp

Fired when a key is released while the control has focus.

sender

Object

Current application context.

e

RequestEventArgs

A RequestEventArgs instance with the data for the event handlers.

Application.BeginRequest

Fired at the beginning of every request.

Application.EndRequest

Fired at the end of every request.

sender

Object

The source of the event.

e

ControlEventArgs

A ControlEventArgs that contains the event data.

Control.ControlAdded

Fired when a new control is added to the ControlCollection.

Control.ControlRemoved

Fired when a control is removed from the ControlCollection.

Form.MdiChildAdded

Fired when a multiple-document interface (MDI) child form is added to the mdi parent.

Form.MdiChildRemoved

Fired when a multiple-document interface (MDI) child form is removed from the mdi parent.

sender

Object

The source of the event.

e

PaintEventArgs

A PaintEventArgs that contains the event data.

Control.Paint

Fired when a UserPaint control needs to redraw itself.

sender

Object

The source of the event.

e

PinchEventArgs

A PinchEventArgs that contains the event data.

Control.Pinch

Fired when two finger moved towards or away from each other. It contains the scaling factor of the pinch.

sender

Object

The source of the event.

e

PreviewKeyDownEventArgs

A PreviewKeyDownEventArgs that contains the event data.

Control.PreviewKeyDown

Fired before the KeyDown event when a key is pressed while focus is on this control.

sender

Object

The source of the event.

e

TrackEventArgs

A TrackEventArgs that contains the event data.

Control.Track

Fired when a pointer grabs an item and moves the pointer on it.

X

X-axis.

Y

Y-axis

SwipeEventArgs.Axis

Returns whether the performed swipe was on the x or y axis.

TrackEventArgs.Axis

Returns the Axis of the track event.

sender

Object

The source of the event.

e

RotateEventArgs

A RotateEventArgs that contains the event data.

Control.Rotate

Fired when two finger moved around a single point. It contains the angle of the rotation.

ClientPlatform.Provider
Object
LayoutEventArgs
LayoutEventArgs
Control.Layout
ApplicationStart
ApplicationRefresh
IWisejHandler
RequestEventArgs.Type
RequestType
ClientEvent
String
String

target

Control

The Control that had the focus when the user pressed F1.

HelpEventHandler

Represents the method that will handle the HelpRequested event of a Control.

HelpEventArgs
Boolean
Control
Control

value

String

Initial hash value.

HashChangedEventHandler

Represents the method that will handle the HashChanged event.

LicenseErrorEventHandler

Represents the method that will handle the LicenseError event.

HashChangedEventArgs
String

TouchEventHandler

Represents the method that will handle the TouchStart, TouchEnd, TouchMove, TouchCancel events.

Int64[]
Boolean
Point[]
Double
Double

control

Control

The Control to store in this event.

ControlEventHandler

Represents the method that will handle the ControlAdded and ControlRemoved events of the Control class.

ControlEventArgs
Control

TrackEventHandler

Represents the method that will handle the Track event.

SwipeAxis
Point
Int32
Int32

oldValue

ClientProfile

Previous ClientProfile.

newValue

ClientProfile

New active ClientProfile.

ResponsiveProfileChangedEventHandler

Represents the method that will handle the Application.ResponsiveProfileChanged event.

ResponsiveProfileChangedEventArgs
ClientProfile
ClientProfile

RotateEventHandler

Represents the method that will handle the Rotate event.

Double

type

RequestType

Type of the incoming request.

RequestEventHandler

Represent a method that handles the BeginRequest, and EndRequest events. Since 3.5.5

RequestEventArgs
RequestEventHandler
RequestType
RequestType
Rectangle
String
Rectangle
CookieStorage
CookieStorage
LocalStorage
LocalStorage
SessionStorage
SessionStorage
Char
KeyPressEventHandler
KeyPress
Control
String
String
PinchEventHandler
Pinch
Name
Description

Down

Direction down.

Left

Direction left.

Right

Direction right.

Up

Direction up.

Used By

Name
Description

Returns the direction of the performed swipe in reference to the axis: X = Up / Down Y = Left / Right

Public Enum SwipeDirection As [Enum]
public enum SwipeDirection : Enum
Count

Int32: Returns the total number of currently open pages.

Item(index)

Page: Returns the page at the specified index.

Item(name)

Page: Returns the first page with the specified name, the search is case insensitive.

Methods

GetEnumerator()

Returns an enumerator that iterates through the open pages.

Returns: IEnumerator.

Public Class PageCollection
    Inherits ICollection
    Implements IEnumerable
public class PageCollection : ICollection, IEnumerable
PaintEventArgs(graphics, clipRect)

Initializes a new instance of the PaintEventArgs class with the specified graphics and clipping rectangle.

Name
Type
Description

graphics

The used to paint the item.

clipRect

The that represents the rectangle in which to paint.

Properties

ClipRectangle

Rectangle: Returns the rectangle in which to paint.

Graphics

Graphics: Returns the graphics used to paint.

Used By

Name
Description

Represents the method that will handle the event of a .

Paint
Public Class PaintEventArgs
    Inherits EventArgs
public class PaintEventArgs : EventArgs
FilePath

String: The full file path to the configuration file to load. Since 3.2.7

Code handling the LoadConfiguration event may set the this property and return null to let Wisej.NET load the configuration from the new file.

SuppressCache

Boolean: When set to true, suppresses the caching of the custom Configuration object returned by the custom handler for the LoadConfiguration event.

Configuration objects are cached and retrieved using the FilePath as the key.

Uri

Uri: The current Uri representing the site being loaded. Since 3.2.7

Used By

Name
Description

Represents a method that handles the event.

LoadConfiguration
Public Class LoadConfigurationEventArgs
    Inherits EventArgs
public class LoadConfigurationEventArgs : EventArgs
Name
Type
Description

sender

The source of the event.

e

A that contains the event data.

Fired By

Name
Description

Fired when the hash part of the URL changes on the client side.

HashChanged
Public Delegate Sub HashChangedEventHandler(ByVal sender As [Object], ByVal e As HashChangedEventArgs)
public delegate void HashChangedEventHandler(Object sender, HashChangedEventArgs e)
Parameters
Name
Type
Description

sender

The source of the event.

e

A that contains the event data.

Fired By

Name
Description

Fired when a key is pressed while the control has focus.

KeyPress
Control
Public Delegate Sub KeyPressEventHandler(ByVal sender As [Object], ByVal e As KeyPressEventArgs)
public delegate void KeyPressEventHandler(Object sender, KeyPressEventArgs e)
Parameters
Name
Type
Description

sender

The source of the event.

hlpevent

A object that contains the event data.

Fired By

Name
Description

Fired when the user requests help for a control by pressing F1.

HelpRequested
Control
Public Delegate Sub HelpEventHandler(ByVal sender As [Object], ByVal hlpevent As HelpEventArgs)
public delegate void HelpEventHandler(Object sender, HelpEventArgs hlpevent)
Name
Type
Description

sender

The source of the event.

e

A that contains the event data.

Fired By

Name
Description

Fired when a license error occurs.

LicenseError
Public Delegate Sub LicenseErrorEventHandler(ByVal sender As [Object], ByVal e As HashChangedEventArgs)
public delegate void LicenseErrorEventHandler(Object sender, HashChangedEventArgs e)
Parameters
Name
Type
Description

sender

The source of the event.

e

A that contains the event data.

Fired By

Name
Description

Fired when the user clicks one of the drop down menu items.

ItemClicked
Button
Public Delegate Sub MenuButtonItemClickedEventHandler(ByVal sender As [Object], ByVal e As MenuButtonItemClickedEventArgs)
public delegate void MenuButtonItemClickedEventHandler(Object sender, MenuButtonItemClickedEventArgs e)
Name
Type
Description

sender

The source of the event.

e

A that contains the event data.

Fired By

Name
Description

Fired when a pointer swipes over the screen.

Swipe
Public Delegate Sub SwipeEventHandler(ByVal sender As [Object], ByVal e As SwipeEventArgs)
public delegate void SwipeEventHandler(Object sender, SwipeEventArgs e)
Parameters
Name
Description

T

Type of the session-singleton object.

Constructors

SessionReference()

Initializes a new instance of SessionReference.

Properties

Id

String: Id of the session holding the SessionReference.

Instance

WeakReference<T>: Singleton instance of T .

WeakReference
Application
Public Class SessionReference(Of T)
GetInstance
public class SessionReference<T>
Parameters
Name
Type
Description

sender

The source of an event.

e

A that contains the event data.

Fired By

Name
Description

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.

QueryContinueDrag
Control
Public Delegate Sub QueryContinueDragEventHandler(ByVal sender As [Object], ByVal e As QueryContinueDragEventArgs)
public delegate void QueryContinueDragEventHandler(Object sender, QueryContinueDragEventArgs e)
Count

Int32: Returns the total number of currently open forms.

Item(index)

Form: Returns the form at the specified index.

Item(name)

Form: Returns the first form with the specified name, the search is case insensitive.

Methods

GetEnumerator()

Returns an enumerator that iterates through the open forms.

Returns: IEnumerator.

Public Class FormCollection
    Inherits ICollection
    Implements IEnumerable
public class FormCollection : ICollection, IEnumerable
QueryContinueDragEventArgs(args)

Initializes a new instance of the QueryContinueDragEventArgs class.

Name
Type
Description

args

The arguments received from the client.

Properties

Action

DragAction: Returns or sets the status of a drag-and-drop operation.

EscapePressed

Boolean: Returns if the user pressed the ESC key.

KeyState

Int32: Returns the current state of the SHIFT, CTRL, and ALT keys.

Modifiers

Keys: Returns a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.

Used By

Name
Description

Represents the method that will handle the event of a .

QueryContinueDrag
Public Class QueryContinueDragEventArgs
    Inherits EventArgs
public class QueryContinueDragEventArgs : EventArgs
MenuButtonItemClickedEventArgs(item)

Initializes a new instance of the MenuButtonItemClickedEventArgs class.

Name
Type
Description

item

The that was clicked.

Properties

Item

MenuItem: Returns the clicked menu item.

Used By

Name
Description

Represents the method that will handle the event of a control.

ItemClicked
Public Class MenuButtonItemClickedEventArgs
    Inherits EventArgs
public class MenuButtonItemClickedEventArgs : EventArgs
Name
Description

Deselected

Represents the event.

Deselecting

Represents the event.

Selected

Represents the event.

Selecting

Represents the event.

Used By

Name
Description

Returns a value indicating which event is occurring.

Returns a value indicating which event is occurring.

Accordion
Public Enum AccordionAction As [Enum]
public enum AccordionAction : Enum

ResponsiveProfileChangedEventHandler

Wisej.Web.ResponsiveProfileChangedEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the Application.ResponsiveProfileChanged event.

public delegate void ResponsiveProfileChangedEventHandler(Object sender, ResponsiveProfileChangedEventArgs e)
Public Delegate Sub ResponsiveProfileChangedEventHandler(ByVal sender As [Object], ByVal e As ResponsiveProfileChangedEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

WidgetEventArgs

Wisej.Web.WidgetEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the WidgetEvent event.

public class WidgetEventArgs : EventArgs
Public Class WidgetEventArgs
    Inherits EventArgs

Constructors

WidgetEventArgs(type, data)

Initializes a new instance of the class.

Name
Type
Description

Properties

Data

: Returns the data object that was sent by the widget with the event.

Type

: Returns the type (name) of the event fired by the widget.

Used By

Name
Description

ColorDialog

Wisej.Web.ColorDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

  • CommonDialog

    • ColorDialog

Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.

Constructors

ColorDialog()

Initializes a new instance of .

ColorDialog(container)

Initializes a new instance of the extender with a specified container.

Name
Type
Description

Properties

Color

: Returns or sets the color selected by the user. (Default: Color [Empty])

CustomColors

: Returns or sets the set of custom colors shown in the dialog box. (Default: null)

Methods

Reset()

Resets all properties to their default values.

TouchEventHandler

Wisej.Web.TouchEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the TouchStart, TouchEnd, TouchMove, TouchCancel events.

public delegate void TouchEventHandler(Object sender, TouchEventArgs e)
Public Delegate Sub TouchEventHandler(ByVal sender As [Object], ByVal e As TouchEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

ResponsiveProfileChangedEventArgs

Wisej.Web.ResponsiveProfileChangedEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the ResponsiveProfileChanged event.

public class ResponsiveProfileChangedEventArgs : EventArgs
Public Class ResponsiveProfileChangedEventArgs
    Inherits EventArgs

Constructors

ResponsiveProfileChangedEventArgs(oldValue, newValue)

Initializes a new instance of the class.

Name
Type
Description

Properties

CurrentProfile

: The new active profile.

PreviousProfile

: The previously active profile.

Used By

Name
Description

FileDialogLoadPathEventHandler

Wisej.Web.FileDialogLoadPathEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the LoadPath and LoadPath events.

public delegate void FileDialogLoadPathEventHandler(Object sender, FileDialogLoadPathEventArgs e)
Public Delegate Sub FileDialogLoadPathEventHandler(ByVal sender As [Object], ByVal e As FileDialogLoadPathEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

BindableComponent

Wisej.Web.BindableComponent

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

KeyEventArgs

Wisej.Web.KeyEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the or event.

Constructors

DragEventHandler

Wisej.Web.DragEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the , , or event of a .

MouseEventHandler

Wisej.Web.MouseEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the method that will handle the MouseDown, MouseUp, or MouseMove event of a form, control, or other component.

Parameters

LayoutEventArgs

Wisej.Web.LayoutEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the event.

Constructors

PreviewKeyDownEventArgs

Wisej.Web.PreviewKeyDownEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the event.

Constructors

FileDialogUI

Wisej.Web.FileDialogUI

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

AccordionCancelEventArgs

Wisej.Web.AccordionCancelEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the and events of a control.

sender

Object

The source of the event.

e

ResponsiveProfileChangedEventArgs

A ResponsiveProfileChangedEventArgs that contains the event data.

Control.ResponsiveProfileChanged

Fired when the active responsive profile is changed.

Application.ResponsiveProfileChanged

Fired when the active responsive profile is changed.

sender

Object

The source of the event.

e

TouchEventArgs

A TouchEventArgs that contains the event data.

Control.TouchStart

Fired when a touch point is placed on the touch surface.

Control.TouchEnd

Fired when a touch point is removed from the touch surface.

Control.TouchCancel

Fired when a touch point has been disrupted in an implementation-specific manner (for example, too many touch points are created).

Control.TouchMove

Fired when a touch point is moved along the touch surface.

sender

Object

The source of the event.

e

FileDialogLoadPathEventArgs

A FileDialogLoadPathEventArgs that contains the event data.

FileDialog.LoadPath

Fired when the file dialog is loading a file or folder.

FolderBrowserDialog.LoadPath

Fired when the file dialog is loading a file or folder.

SwipeEventArgs.Direction
Object
HashChangedEventArgs
HashChangedEventArgs
Application.HashChanged
Object
KeyPressEventArgs
KeyPressEventArgs
Control.KeyPress
Object
HelpEventArgs
HelpEventArgs
Control.HelpRequested
Object
HashChangedEventArgs
LicenseErrorEventArgs
Application.LicenseError
Object
MenuButtonItemClickedEventArgs
MenuButtonItemClickedEventArgs
Button.ItemClicked
Object
SwipeEventArgs
SwipeEventArgs
Control.Swipe
Object
QueryContinueDragEventArgs
QueryContinueDragEventArgs
Control.QueryContinueDrag
Deselected
Deselecting
Selected
Selecting
AccordionCancelEventArgs.Action
AccordionEventArgs.Action

type

String

The type (name) of event.

data

Object

The data object received with the event.

WidgetEventHandler

Represents the method that handles the WidgetEvent event.

WidgetEventArgs
Object
String

oldValue

ClientProfile

Previous ClientProfile.

newValue

ClientProfile

New active ClientProfile.

ResponsiveProfileChangedEventHandler

Represents the method that will handle the Application.ResponsiveProfileChanged event.

ResponsiveProfileChangedEventArgs
ClientProfile
ClientProfile
Graphics
Graphics
Rectangle
Rectangle
PaintEventHandler
Paint
Control
LoadConfigurationEventHandler
LoadConfiguration
WisejEventArgs
QueryContinueDragEventHandler
QueryContinueDrag
Control
MenuItem
MenuItem
MenuButtonItemClickedEventHandler
ItemClicked
Button

container

IContainer

An IContainer that represents the container of the ColorDialog component.

Public Class ColorDialog
    Inherits CommonDialog
ColorDialog
ColorDialog
Color
Color[]
public class ColorDialog : CommonDialog

BindableComponent

Extends Component and enables the component to participated if data binding operations and have their own DataBindings.

public class BindableComponent : Component, IBindableComponent, IBindableComponent
Public Class BindableComponent
    Inherits Component
    Implements IBindableComponent, IBindableComponent

Constructors

BindableComponent()

Initializes a new instance of BindableComponent.

Properties

BindingContext

BindingContext: Returns or sets the BindingContext for the component.

DataBindings

ControlBindingsCollection: Returns the data bindings for the component.

Events

BindingContextChanged

EventHandler Occurs when the value of the BindingContext property changes.

Inherited By

Name
Description

Represents an individual menu item that is displayed within a or and always shows a checkbox next to the label.

Represents a context menu associated to a .

Represents an individual menu item that is displayed within a or rendered using the <a> link element to let the browser process the specified URL.

Represents the main menu in a .

Represents the base functionality for all menus.

Represents an individual item that is displayed within a or .

Implements

Name
Description

Bindable components implement this interface.

All wisej components implement this interface.

Allows an object to serialize itself.

Component
Component

KeyEventArgs(keyData)

Initializes a new instance of the KeyEventArgs class.

Name
Type
Description

keyData

A representing the key that was pressed, combined with any modifier flags that indicate which CTRL, SHIFT, and ALT keys were pressed at the same time. Possible values are obtained be applying the bitwise OR (|) operator to constants from the enumeration.

Properties

Alt

Boolean: Returns whether the ALT key was pressed.

Control

Boolean: Returns whether the CTRL key was pressed.

Handled

Boolean: Returns or sets whether the event was handled.

KeyCode

Keys: Returns the keyboard code..

KeyData

Keys: Returns the key data.

KeyValue

Int32: Returns the keyboard value.

Modifiers

Keys: Returns the modifier flags indicating which combination of CTRL, SHIFT, and ALT keys was pressed.

Shift

Boolean: Returns a value indicating whether the SHIFT key was pressed.

Methods

IsAltPressed()

Returns whether the Alt key is pressed.

Returns: Boolean.

IsCtrlPressed()

Returns whether the Control key is pressed.

Returns: Boolean.

IsShiftPressed()

Returns whether the Shift key is pressed.

Returns: Boolean.

Used By

Name
Description

Represents the method that will handle the or event of a .

KeyDown
KeyUp
Public Class KeyEventArgs
    Inherits EventArgs
public class KeyEventArgs : EventArgs
Parameters
Name
Type
Description

sender

The source of the event.

e

A that contains the event data.

Fired By

Name
Description

Fired when a drag-and-drop operation is completed.

Fired when an object is dragged into the control's bounds.

Fired when an object is dragged over the control's bounds.

Fired when an object is dragged into the control's bounds.

Fired when a drag-and-drop operation is completed.

DragDrop
DragEnter
DragOver
Control
Public Delegate Sub DragEventHandler(ByVal sender As [Object], ByVal e As DragEventArgs)
public delegate void DragEventHandler(Object sender, DragEventArgs e)
Name
Type
Description

sender

The source of the event.

e

A that contains the event data.

Fired By

Name
Description

Fired when the user clicks the control with the mouse.

Fired when the control is clicked by the mouse.

Fired when the control is double clicked by the mouse.

Fired when the mouse pointer is over the control and a mouse button is pressed.

Fired when the mouse pointer is moved over the control.

Public Delegate Sub MouseEventHandler(ByVal sender As [Object], ByVal e As MouseEventArgs)
public delegate void MouseEventHandler(Object sender, MouseEventArgs e)
LayoutEventArgs(affectedComponent, affectedProperty)

Initializes a new instance of the LayoutEventArgs class with the specified component and property affected.

Name
Type
Description

affectedComponent

The affected by the layout change.

affectedProperty

The property affected by the layout change.

LayoutEventArgs(affectedControl, affectedProperty)

Initializes a new instance of the LayoutEventArgs class with the specified control and property affected.

Name
Type
Description

affectedControl

The affected by the layout change.

affectedProperty

The property affected by the layout change.

Properties

AffectedComponent

IComponent: Returns the IComponent affected by the layout change.

AffectedControl

Control: Returns the child control affected by the change.

AffectedProperty

String: Returns the property affected by the change.

Used By

Name
Description

Represents the method that will handle the event of a .

Layout
Public Class LayoutEventArgs
    Inherits EventArgs
public class LayoutEventArgs : EventArgs
PreviewKeyDownEventArgs(keyData)

Initializes a new instance of the PreviewKeyDownEventArgs class with the specified key.

Name
Type
Description

keyData

One of the values.

Properties

Alt

Boolean: Returns whether the ALT key was pressed.

Control

Boolean: Returns whether the CTRL key was pressed.

IsInputKey

Boolean: Returns whether a key is a regular input key.

KeyCode

Keys: Returns the keyboard code.

KeyData

Keys: Returns the key data.

KeyValue

Int32: Returns the keyboard value.

Modifiers

Keys: Returns the modifier flags indicating which combination of CTRL, SHIFT, and ALT keys was pressed.

Shift

Boolean: Returns whether the SHIFT key was pressed.

Used By

Name
Description

Represents the method that will handle the event.

PreviewKeyDown
Public Class PreviewKeyDownEventArgs
    Inherits EventArgs
public class PreviewKeyDownEventArgs : EventArgs

ContainerControl

  • Form

    • FileDialogUI

UI implementation for the FileDialog class.

public class FileDialogUI : Form
Public Class FileDialogUI
    Inherits Form

Constructors

FileDialogUI()

Initializes a new instance of FileDialogUI.

FileDialogUI(fileDialog)

Initializes a new instance of FileDialogUI.

Name
Type
Description

fileDialog

Implements

Name
Description

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 class must implement this interface.

All wisej top-level windows implement this interface.

Control
ScrollableControl
Constructors

AccordionCancelEventArgs(panel, panelIndex, cancel, action)

Initializes a new instance of the AccordionCancelEventArgs class.

Name
Type
Description

panel

The the event is occurring for.

panelIndex

The zero-based index of panel in the collection.

cancel

true to cancel the panel change by default; otherwise, false.

Properties

Action

AccordionAction: Returns a value indicating which event is occurring.

Panel

AccordionPanel: Returns the AccordionPanel the event is occurring for.

PanelIndex

Int32: Returns the zero-based index of the Panel in the Panels collection.

Used By

Name
Description

Represents the method that will handle the or event of a control.

Selecting
Deselecting
Accordion
Public Class AccordionCancelEventArgs
    Inherits CancelEventArgs
public class AccordionCancelEventArgs : CancelEventArgs

OpenFileDialog

Wisej.Web.OpenFileDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

  • CommonDialog

    • FileDialog

Prompts the user to open a file from the server.

You can:

  • Override . It's called when the specified file doesn't exist and the property is true.

  • Override to create your custom when the method is called.

  • Set the to a class that has a constructor that accepts as the single argument to change the User Interface (UI) of the file dialog.

You must add at least one to the collection before showing the dialog.

Constructors

OpenFileDialog()

Initializes a new instance of .

OpenFileDialog(container)

Initializes a new instance of the extender with a specified container.

Name
Type
Description

Properties

CheckFileExists

: Returns or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. (Default: True)

Multiselect

: Returns or sets a value indicating whether the dialog box allows multiple files to be selected. (Default: False)

SafeFileName

: Returns the file name and extension for the file selected in the dialog box. The file name does not include the path.

SafeFileNames

: Returns an array of file names and extensions for all the selected files in the dialog box. The file names do not include the path.

Methods

OpenFile()

Opens the file selected by the user, with read-only permission. The file is specified by the property.

Returns: . A that specifies the read-only file selected by the user.

Throws:

  • is empty or null.

Reset()

Resets all properties to their default values.

FileDialogLoadPathEventArgs

Wisej.Web.FileDialogLoadPathEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the LoadPath event.

public class FileDialogLoadPathEventArgs : CancelEventArgs
Public Class FileDialogLoadPathEventArgs
    Inherits CancelEventArgs

Allows an application to filter the files and folders loaded by the FileDialog and FolderBrowserDialog components and to set the icon, creation date and modified date. To skip a file or folder, set e.Cancel = true. To set a file's icon, or date, set the ImageSource, CreationTime or LastWriteTime properties.

Constructors

FileDialogLoadPathEventArgs(path, isDirectory)

Constructs a new instance of .

Name
Type
Description

Properties

CreationTime

: Sets the creation DateTime of the file.

FileSize

: Sets the file size in bytes.

ImageSource

: Sets the name or path of the icon to display next to the file.

IsDirectory

: Returns true when the refers to a directory.

LastWriteTime

: Sets the last modified DateTime of the file.

Path

: Returns the full path of the file or folder being loaded.

Used By

Name
Description

FolderBrowserDialogUI

Wisej.Web.FolderBrowserDialogUI

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

  • Control

    • ScrollableControl

UI implementation for the FolderDialog class.

Constructors

FolderBrowserDialogUI()

Initializes a new instance of .

FolderBrowserDialogUI(folderDialog)

Initializes a new instance of .

Name
Type
Description

Implements

Name
Description

Cursors

Wisej.Web.Cursors

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Defines a collection of predefined objects.

Properties

IDropTarget.DragOver

Fired when an object is dragged over the control's bounds.

Object
DragEventArgs
DragEventArgs
Control.DragDrop
Control.DragEnter
Control.DragOver
IDropTarget.DragEnter
IDropTarget.DragDrop

Control.MouseUp

Fired when the mouse pointer is over the control and a mouse button is released.

Control.MouseWheel

Fired when the mouse wheel moves while the control has focus.

Object
MouseEventArgs
MouseEventArgs
CheckedListBox.MouseClick
CheckedListBox
Control.MouseClick
Control.MouseDoubleClick
Control.MouseDown
Control.MouseMove

path

String

Path of the file or directory.

isDirectory

Boolean

Indicates that the path is for a directory.

FileDialogLoadPathEventHandler

Represents the method that will handle the LoadPath and LoadPath events.

FileDialogLoadPathEventArgs
DateTime
Int64
String
Boolean
Path
DateTime
String

StatusBarControl

Represents a panel in a StatusBar control that can host any Control.

StatusBarPanel

Represents a panel in a StatusBar control.

ToolBarButton

Represents an item in the ToolBar.

CheckedMenuItem
MainMenu
ContextMenu
ContextMenu
Control
LinkMenuItem
MainMenu
ContextMenu
HRef
MainMenu
Form
Menu
MenuItem
MainMenu
ContextMenu
IBindableComponent
IWisejComponent
IWisejSerializable
Keys
Keys
Keys
KeyEventHandler
KeyUp
KeyDown
Control
IComponent
IComponent
String
Control
Control
String
LayoutEventHandler
Layout
Control
Keys
Keys
PreviewKeyDownEventHandler
PreviewKeyDown

IWisejSerializable

Allows an object to serialize itself.

FileDialog
IBindableComponent
IContainerControl
IDropTarget
IWisejComponent
IWisejControl
Control
IWisejWindow

action

AccordionAction

One of the AccordionAction values.

AccordionPanel
AccordionPanel
Int32
Panels
Boolean
AccordionCancelEventHandler
Selecting
Deselecting
Accordion

Override OnFileOk to provide your custom implementation of the actions to execute when the user presses the OK button.

container

IContainer

An IContainer that represents the container of the OpenFileDialog component.

OpenFileDialog
Public Class OpenFileDialog
    Inherits FileDialog
PromptFileNotFound
CheckFileExists
CreateUI
Form
ShowDialog
DialogTemplate
Form
FileDialog
IFileSystemProvider
Roots
OpenFileDialog
OpenFileDialog
Boolean
Boolean
String
String[]
FileName
Stream
Stream
ArgumentNullException
FileName
public class OpenFileDialog : FileDialog

Allows an object to serialize itself.

folderDialog

FolderBrowserDialog

IBindableComponent

Bindable components implement this interface.

IContainerControl

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

IDropTarget

Controls that support drag & drop operations implement this interface.

IWisejComponent

All wisej components implement this interface.

IWisejControl

All wisej controls derived from the Control class must implement this interface.

IWisejWindow

All wisej top-level windows implement this interface.

ContainerControl
Form
FolderBrowserDialogUI
Public Class FolderBrowserDialogUI
    Inherits Form
FolderBrowserDialogUI
FolderBrowserDialogUI
public class FolderBrowserDialogUI : Form
Alias

Cursor: Returns the "shortcut" cursor.

Arrow

Cursor: Returns the "arrow" cursor.

Cell

Cursor: Returns "cell" cursor.

Copy

Cursor: Returns the clipboard "copy" cursor.

Cross

Cursor: Returns the "crosshair" cursor.

Default

Cursor: Returns the "default" cursor, which is usually an arrow cursor.

Grab

Cursor: Returns the "grab" cursor.

Hand

Cursor: Returns the "hand" cursor, typically used when hovering over a Web link.

Help

Cursor: Returns the "help" cursor, which is a combination of an arrow and a question mark.

HSplit

Cursor: Returns the "row-resize" cursor that appears when the mouse is positioned over a horizontal splitter bar.

IBeam

Cursor: Returns the "text" cursor, which is used to show where the text cursor appears when the mouse is clicked.

Move

Cursor: Returns the "move" cursor, typically an cross shape.

No

Cursor: Returns the "not-allowed" cursor that indicates that a particular region is invalid for the current operation.

None

Cursor: Returns the "none" cursor.

NotAllowed

Cursor: Returns the "not-allowed" cursor.

SizeAll

Cursor: Returns the "move" sizing cursor, which consists of four joined arrows that point north, south, east, and west.

SizeNE

Cursor: Returns the "ne-resize" diagonal (north/east) sizing cursor.

SizeNESW

Cursor: Returns the "nesw-resize" diagonal (northeast/southwest) sizing cursor.

SizeNS

Cursor: Returns the "n-resize" vertical (north/south) sizing cursor.

SizeNW

Cursor: Returns the "nw-resize" diagonal (north/west) sizing cursor.

SizeNWSE

Cursor: Returns the "nwse-resize" diagonal (northwest/southeast) sizing cursor.

SizeSE

Cursor: Returns the "se-resize" diagonal (south/east) sizing cursor.

SizeSW

Cursor: Returns the "sw-resize" diagonal (south/west) sizing cursor.

SizeWE

Cursor: Returns the "w-resize" horizontal (west/east) sizing cursor.

Text

Cursor: Returns the "text" cursor.

VSplit

Cursor: Returns the "col-resize" cursor that appears when the mouse is positioned over a vertical splitter bar.

WaitCursor

Cursor: Returns the "wait" cursor, typically an hourglass shape.

ZoomIn

Cursor: Returns the "zoom-in" cursor.

ZoomOut

Cursor: Returns the "zoom-out" cursor.

Cursor
Public Class Cursors
public class Cursors

DragEventArgs

Wisej.Web.DragEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the DragDrop, DragEnter, or DragOver event.

public class DragEventArgs : EventArgs
Public Class DragEventArgs
    Inherits EventArgs

Constructors

DragEventArgs(allowedEffect, effect, data, location)

Initializes a new instance of the class.

Name
Type
Description

Properties

AllowedEffect

: Returns which drag-and-drop operations are allowed by the originator (or source) of the drag event.

AllowedFileTypes

: Specify the types of files that the server accepts (that can be submitted through a file upload).

The allowed files string follows the HTML 4.01 and HTML5 specifications. You can configure only one entry in the browser's file dialog. The syntax is "file_extension|audio/|video/|image/*|media_type". Look at for a complete list of standard media types.

Data

: Returns the that contains the data associated with this event.

DragSource

: Returns the component that started the drag operation by calling . Since 2.5.32

DropTarget

: Returns the original target of the drag operation.

Effect

: Returns or sets the target drop effect in a drag-and-drop operation.

Files

: Returns the containing the files that have been dropped on the target, or null.

Image

: Returns or sets the custom image displayed on the client to represent the drag action.

ImageSize

: Returns or sets the size in pixels of the custom image displayed on the client to represent the drag action.

ImageSource

: Returns or sets the custom image source displayed on the client to represent the drag action.

KeyState

: Returns the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.

Location

: Returns the location of the mouse or pointer event, in screen coordinates.

Modifiers

: Returns a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.

X

: Returns the x-coordinate of the mouse or pointer, in screen coordinates.

Y

: Returns the y-coordinate of the mouse or pointer, in screen coordinates.

Used By

Name
Description

Cursor

Wisej.Web.Cursor

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the mouse pointer.

public class Cursor
Public Class Cursor

Constructors

Cursor(image)

Creates a new cursor using the .

Name
Type
Description

Cursor(source)

Creates a new cursor using an image source: can use a themed image or URL.

Name
Type
Description

Cursor(stream)

Creates a new cursor using the .

Name
Type
Description

Cursor(image, x, y)

Creates a new cursor using the .

Name
Type
Description

Cursor(stream, x, y)

Creates a new cursor using the .

Name
Type
Description

Cursor(source, x, y)

Creates a new cursor using an image source: can use a themed image or URL.

Name
Type
Description

Properties

Name

: Returns the name of the cursor.

Position

: Returns or sets the pointer's position.

MouseEventArgs

Wisej.Web.MouseEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the MouseUp, MouseDown, and MouseMove events.

public class MouseEventArgs : EventArgs
Public Class MouseEventArgs
    Inherits EventArgs

Constructors

MouseEventArgs(button, clicks, x, y, delta)

Initializes a new instance of the class.

Name
Type
Description

MouseEventArgs(button, clicks, x, y, delta, role)

Initializes a new instance of the class.

Name
Type
Description

Properties

Button

: Returns which mouse button was pressed.

Clicks

: Returns the number of clicks or taps.

Delta

: Returns the number of times the mouse wheel has rotated.

Location

: Returns the location of the mouse or pointer event.

OriginalTarget

: Returns the original target when the pointer event has bubbled up because the original target was either not or .

Role

: Returns the internal role assigned to the element that generated the pointer event: checkbox, button, ...

The value in the Role property is taken from the "role" attribute of the clicked element inside the widget. You can detect clicks on custom HTML content by adding the role attribute to the custom element.

X

: Returns the x-coordinate of the mouse or touch event.

Y

: Returns the y-coordinate of the mouse or touch event.

Used By

Name
Description

JavaScript.ClientEventCollection

Wisej.Web.JavaScript ClientEventCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents a collection of JavaScript events and their corresponding handler code.

public class ClientEventCollection : IList, ICollection, IEnumerable, IList<ClientEvent>, ICollection<ClientEvent>, IEnumerable<ClientEvent>
Public Class ClientEventCollection
    Inherits IList
    Implements ICollection, IEnumerable, IList(Of ClientEvent), ICollection(Of ClientEvent), IEnumerable(Of ClientEvent)

Constructors

ClientEventCollection()

Initializes a new instance of .

Properties

Count

: Returns the number of items in the collection.

Item(index)

: Returns the element at the specified index .

Methods

Add(item)

Adds the instance to the collection.

Parameter
Type
Description

Clear()

Removes all the items from the collection.

Contains(item)

Checks whether the specified item exists in the collection.

Parameter
Type
Description

Returns: . True of the collection contains the specified item .

IndexOf(item)

Returns the position of the specified item in the collection.

Parameter
Type
Description

Returns: . The index of the specified item or -1 if not found.

Insert(index, item)

Inserts the item into the collection at the specified index .

Parameter
Type
Description

Remove(item)

Removes the item from the collection.

Parameter
Type
Description

Returns: . True of the specified item was found and removed from the collection.

RemoveAt(index)

Removes the item at the location index .

Parameter
Type
Description

Events

CollectionChanged

Fired when the collection has changed.

SaveFileDialog

Wisej.Web.SaveFileDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

  • CommonDialog

    • FileDialog

Prompts the user to select a location for saving a file on the server.

You can:

  • Override . It's called when the specified file doesn't exist and the property is true.

  • Override . It's called when the specified file doesn't exist and the property is true.

  • Override . It's called when the specified file doesn't exist and the property is true.

You must add at least one to the collection before showing the dialog.

Constructors

SaveFileDialog()

Initializes a new instance of .

SaveFileDialog(container)

Initializes a new instance of the extender with a specified container.

Name
Type
Description

Properties

CreatePrompt

: Returns or sets a value indicating whether the dialog box prompts the user for permission to create a file, if the file specified file does not exist. (Default: False)

OverwritePrompt

: Returns or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that already exists. (Default: True)

Methods

OpenFile()

Opens the file with read/write permission selected by the user.

Returns: . A that specifies the read/write file selected by the user.

Throws:

  • is empty or null.

ProcessFileNames(fileNames)

Receives the file names selected by the user and validates them according to the properties set in the instance.

Parameter
Type
Description

Returns: . True if the files have been validated and the dialog can close; otherwise false to keep the dialog open.

Reset()

Resets all dialog box options to their default values.

FolderBrowserDialog

Wisej.Web.FolderBrowserDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Allows the user to select a folder from one of the

IWisejSerializable

image

Image

An Image to use for the cursor.

source

String

The name of a theme image or a URL to an image resource.

stream

Stream

A Stream to use for the cursor.

image

Image

An Image to use for the cursor.

x

Int32

x-coordinate of the hotspot location.

y

Int32

y-coordinate of the hotspot location.

stream

Stream

A Stream to use for the cursor.

x

Int32

x-coordinate of the hotspot location.

y

Int32

y-coordinate of the hotspot location.

source

String

The name of a theme image or a URL to an image resource.

x

Int32

x-coordinate of the hotspot location.

y

Int32

y-coordinate of the hotspot location.

Image
Image
Image
Image
String
Point

item

ClientEvent

ClientEvent item to add to the collection.

item

ClientEvent

ClientEvent items to find in the collection.

item

ClientEvent

ClientEvent item to locate in the collection.

index

Int32

Position where to insert the item .

item

ClientEvent

ClientEvent item to insert into the collection.

item

ClientEvent

ClientEvent instance to remove from the collection.

index

Int32

Position of the item to remove from the collection.

ClientEventCollection
Int32
ClientEvent
ClientEvent
ClientEvent
ClientEvent
Boolean
Int32
Boolean
ClientEvent
CollectionChangeEventHandler

Override CreateUI to create your custom Form when the method ShowDialog is called.

  • Set the DialogTemplate to a Form class that has a constructor that accepts FileDialog as the single argument to change the User Interface (UI) of the file dialog.

  • Override OnFileOk to provide your custom implementation of the actions to execute when the user presses the OK button.

  • container

    IContainer

    An IContainer that represents the container of the SaveFileDialog component.

    fileNames

    String[]

    Array containing the selected file paths.

    SaveFileDialog
    Public Class SaveFileDialog
        Inherits FileDialog
    PromptFileNotFound
    CheckFileExists
    PromptFileCreate
    CreatePrompt
    PromptFileOverwrite
    OverwritePrompt
    IFileSystemProvider
    Roots
    SaveFileDialog
    SaveFileDialog
    Boolean
    Boolean
    Stream
    Stream
    ArgumentNullException
    FileName
    FileDialog
    Boolean
    public class SaveFileDialog : FileDialog

    delta

    A signed count of the number of dents the wheel has rotated.

    delta

    A signed count of the number of dents the wheel has rotated.

    role

    The internal role assigned to the element that generated the pointer event.

    button

    MouseButtons

    One of the MouseButtons values that indicate which mouse button was pressed.

    clicks

    Int32

    The number of times a mouse button was pressed.

    x

    Int32

    The x-coordinate of a pointer click, in pixels.

    y

    Int32

    button

    MouseButtons

    One of the MouseButtons values that indicate which mouse button was pressed.

    clicks

    Int32

    The number of times a mouse button was pressed.

    x

    Int32

    The x-coordinate of a pointer click, in pixels.

    y

    Int32

    MouseEventHandler

    Represents the method that will handle the MouseDown, MouseUp, or MouseMove event of a form, control, or other component.

    MouseEventArgs
    MouseEventArgs
    MouseButtons
    Int32
    Int32
    Point
    Control
    Control
    Enabled
    Anonymous
    String
    Int32
    Int32

    The y-coordinate of a pointer click, in pixels.

    The y-coordinate of a pointer click, in pixels.

    .
    public class FolderBrowserDialog : CommonDialog
    Public Class FolderBrowserDialog
        Inherits CommonDialog

    Constructors

    FolderBrowserDialog()

    Initializes a new instance of FolderBrowserDialog.

    FolderBrowserDialog(roots)

    Initializes a new instance of FolderBrowserDialog using the initial roots .

    Name
    Type
    Description

    roots

    Initial file systems to load in the .

    FolderBrowserDialog(container)

    Initializes a new instance of the FolderBrowserDialog extender with a specified container.

    Name
    Type
    Description

    container

    An that represents the container of the component.

    Properties

    Description

    String: Returns or sets the description splayed above the tree view control in the dialog box. (Default: "")

    Roots

    FileDialogRootCollection: List of root IFileSystemProvider file systems displayed by the FolderBrowserDialog.

    The Roots collection and the IFileSystemProvider implementations allow the application to use arbitrary names mapped to a specific path. For example, the app may add a root object named "Documents" to "c:\users[logged-user-id]\files\documents". Each user will see "Documents" as the root, but will also see only the files in the [logged-user-id] directory.

    SelectedPath

    String: Returns sets the path selected by the user. (Default: "")

    ShowHelp

    Boolean: Returns or sets whether the Help button is displayed in the file dialog box. (Default: False)

    Title

    String: Returns or sets the file dialog box title. (Default: "")

    Methods

    GetRoot(path)

    Returns the IFileSystemProvider that contains the specified path .

    Parameter
    Type
    Description

    path

    Full path of the file to locate in on of the .

    Returns: IFileSystemProvider. The IFileSystemProvider that contains the specified path or null if not found.

    MapPath(folderPath)

    Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.

    Parameter
    Type
    Description

    folderPath

    Virtual path to map to the corresponding physical path.

    Returns: String. The physical path for the IFileSystemProvider implementation.

    Reset()

    Resets all properties to their default values.

    Events

    LoadPath

    FileDialogLoadPathEventHandler Fired when the file dialog is loading a file or folder.

    CommonDialog
    FolderBrowserDialog
    Roots

    allowedEffect

    DragDropEffects

    One of the DragDropEffects values.

    effect

    DragDropEffects

    One of the DragDropEffects values.

    data

    Object

    The data associated with this event.

    location

    Point

    DragEventHandler

    Represents the method that will handle the DragDrop, DragEnter, or DragOver event of a Control.

    DragEventArgs
    DragDropEffects
    String
    IANA Media Types
    IDataObject
    IDataObject
    Control
    DoDragDrop
    Object
    DragDropEffects
    HttpFileCollection
    HttpFileCollection
    Image
    Size
    String
    Int32
    Point
    Keys
    Int32
    Int32

    The that indicates the location of the drag event.

    Component

    Wisej.Web.Component

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Extends and enables the components to appear on the designer surface.

    ResponsiveProfileChangedEventHandler

    Wisej.Web.ResponsiveProfileChangedEventHandler

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Represents the method that will handle the Application.ResponsiveProfileChanged event.

    Parameters

    Point
    Int32
    Int32
    String
    IFileSystemProvider[]
    FolderBrowserDialog
    IContainer
    IContainer
    FolderBrowserDialog
    String
    Roots
    String
    public class Component : Component, IComponent
    Public Class Component
        Inherits Component
        Implements IComponent

    Constructors

    Component()

    Default constructor

    Methods

    Update()

    Updates the component on the client.

    Inherited By

    Name
    Description

    Extends and enables the component to participated if data binding operations and have their own .

    Implements a timer that raises an event at user-defined intervals.

    Represents a component in the control's taskbar.

    Represents a component in the control's taskbar that can host any .

    Represents a DateTime component in the control's taskbar.

    Implements

    Name
    Description

    All wisej components implement this interface.

    Allows an object to serialize itself.

    Component
    Component
    Component
    Name
    Type
    Description

    sender

    The source of the event.

    e

    A that contains the event data.

    Fired By

    Name
    Description

    Fired when the active responsive profile is changed.

    Fired when the active responsive profile is changed.

    Public Delegate Sub ResponsiveProfileChangedEventHandler(ByVal sender As [Object], ByVal e As ResponsiveProfileChangedEventArgs)
    public delegate void ResponsiveProfileChangedEventHandler(Object sender, ResponsiveProfileChangedEventArgs e)

    CommonDialog

    Wisej.Web.CommonDialog

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Specifies the base class used for displaying dialog boxes on the screen.

    public class CommonDialog : Component
    Public Class CommonDialog
        Inherits Component

    Constructors

    CommonDialog()

    Initializes a new instance of .

    CommonDialog(container)

    Initializes a new instance of the extender with a specified container.

    Name
    Type
    Description

    Properties

    DialogTemplate

    : Returns or sets the type of the common dialog UI control to show when calling the method. (Default: null)

    Tag

    : Returns or sets an object that contains data about the control. (Default: null)

    Title

    : Returns or sets the dialog box title. (Default: "")

    WindowState

    : Returns or sets the initial of the common dialog. (Default: Normal)

    Methods

    Reset()

    When overridden in a derived class, resets the properties of a common dialog box to their default values.

    ShowDialog()

    Runs a common dialog box with a default owner.

    Returns: . if the user clicks OK in the dialog box; otherwise, .

    ShowDialog(onclose)

    Runs a common dialog box with a default owner.

    Parameter
    Type
    Description

    Returns: . if the user clicks OK in the dialog box; otherwise, .

    ShowDialog(owner)

    Runs a common dialog box with the specified owner.

    Parameter
    Type
    Description

    Returns: . if the user clicks OK in the dialog box; otherwise, .

    ShowDialog(owner, onclose)

    Runs a common dialog box with the specified owner.

    Parameter
    Type
    Description

    Returns: . if the user clicks OK in the dialog box; otherwise, .

    ShowDialogAsync(owner)

    Runs a common dialog box with the specified owner asynchronously.

    Parameter
    Type
    Description

    Returns: . if the user clicks OK in the dialog box; otherwise, .

    Events

    HelpRequested

    Fired when the user clicks the Help button on a common dialog box.

    Inherited By

    Name
    Description

    SplitButton

    Wisej.Web.SplitButton

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    • Control

      • ButtonBase

    Represents a split button control.

    Constructors

    SplitButton()

    Initializes a new instance of the class.

    SplitButton(text, onClick)

    Initializes a new instance of the class with specific initial settings.

    Name
    Type
    Description

    SplitButton(text, location, size, onClick)

    Initializes a new instance of the class with specific initial settings.

    Name
    Type
    Description

    SplitButton(text, ImageSource, location, size, onClick)

    Initializes a new instance of the class with specific initial settings.

    Name
    Type
    Description

    Properties

    Orientation

    : Returns or sets a value indicating the layout of the . When the value is set to the down arrow is places below the text, otherwise it's to the right of the text. (Default: Horizontal)

    Implements

    Name
    Description

    ButtonBase

    Wisej.Web.ButtonBase

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    • Control

      • ButtonBase

    Implements the basic functionality common to button controls.

    Constructors

    ButtonBase()

    Initializes a new instance of the class.

    Properties

    AllowHtml

    : Returns or sets a value indicating that the control can display HTML in the Text property. (Default: False)

    Newlines (CRLF) are converted to <BR/> when is false, or when is true and the text doesn't contain any HTML.

    AutoEllipsis

    : Returns or sets whether the ellipsis character (...) appears at the right edge of the button, denoting that the text extends beyond the size of the button. (Default: False)

    AutoShowLoader

    : Returns or sets whether the application blocks the browser with a modal mask when this button is clicked and until the server is done processing the execution request. (Default: False)

    blocks the entire browser as soon as the button is clicked since it's implemented on the client side, while blocks the specific widget when returning from the request.

    AutoSize

    : Returns or sets a value that indicates whether the control resizes based on its contents. (Default: False)

    CharacterCasing

    : Returns or sets the case of the text to display to the user. (Default: Normal)

    Command

    : Returns or sets the implementation to invoke. (Default: null)

    Image

    : Returns or sets the image that is displayed in a button control.

    ImageAlign

    : Returns or sets the alignment of the image in the button control. (Default: MiddleCenter)

    ImageIndex

    : Returns or sets the image list index value of the image in the displayed in the button control. (Default: -1)

    Throws:

    • The specified index is less than -1.

    ImageKey

    : Returns or sets the key accessor for the image in the displayed in the button control. (Default: "")

    ImageList

    : Returns or sets the that contains the displayed in a button control. (Default: null)

    ImageSource

    : Returns or sets the theme name or URL for the image to display in the button control.

    Text

    : Returns or sets the text associated with this control. (Default: "")

    Newlines (CRLF) are converted to <BR/> when is false, or when is true and the text doesn't contain any HTML.

    TextAlign

    : Returns or sets the alignment of the text in the button control. (Default: MiddleCenter)

    TextImageRelation

    : Returns or sets the position of text and image relative to each other. (Default: ImageBeforeText)

    UseMnemonic

    : Returns or sets whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control. (Default: True)

    Methods

    PerformClick()

    Generates a event for a button.

    Events

    CommandChanged

    Fired when the property value changes.

    Inherited By

    Name
    Description

    Implements

    Name
    Description

    Button

    Wisej.Web.Button

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    • Control

      • ButtonBase

    Represents a button control.

    Constructors

    Button()

    Initializes a new instance of the class.

    Button(text, onClick)

    Initializes a new instance of the class with specific initial settings.

    Name
    Type
    Description

    Button(text, location, size, onClick)

    Initializes a new instance of the class with specific initial settings.

    Name
    Type
    Description

    Button(text, ImageSource, location, size, onClick)

    Initializes a new instance of the class with specific initial settings.

    Name
    Type
    Description

    Properties

    AutoSizeMode

    : Returns or sets the mode by which the automatically resizes itself. (Default: GrowOnly)

    AutoToolTip

    : Returns or sets whether a tooltip is displayed when the text extends beyond the size of the control. (Default: False)

    The auto tooltip is set on the browser using the attribute managed by the browser, does not use the themed tooltip managed by Wisej.NET.

    BorderStyle

    : Returns or sets the border style of the button control. (Default: Solid)

    DialogResult

    : Returns or sets a value that is returned to the parent form when the button is clicked. (Default: None)

    Display

    : Returns or sets the mode of the control to determine whether to display the icon, the text or both. (Default: Both)

    ImageSpacing

    : Returns or sets the distance in pixels between the image and the label inside the button. (Default: null)

    MenuItems

    : Returns the collection of objects associated with the button.

    Repeat

    : Enables or disables the auto-repeat feature. When enabled, the button keeps firing click events at an increasing rate while the user keeps the button pressed. (Default: False)

    Shortcut

    : Returns or sets a value indicating the shortcut key associated with the button. (Default: None)

    Methods

    PerformClick()

    Generates a event for a button.

    Events

    ItemClicked

    Fired when the user clicks one of the drop down menu items.

    MenuCollapse

    Fired when the button menu is closed. Since 3.5.5

    MenuPopup

    Fired after the button menu is displayed on the client. Since 3.5.5

    Inherited By

    Name
    Description

    Implements

    Name
    Description

    FileDialog

    Wisej.Web.FileDialog

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Displays a dialog box from which the user can select a file.

    Object
    ResponsiveProfileChangedEventArgs
    ResponsiveProfileChangedEventArgs
    Control.ResponsiveProfileChanged
    Application.ResponsiveProfileChanged

    Animation

    Provides support for animating controls or windows using predefined animations definitions or custom animations in response to certain events.

    ErrorProvider

    Provides a user interface for indicating that a control on a form has an error associated with it.

    HelpTip

    Represents a small rectangular pop-up window that displays a brief help text next to a control when it gets activated (focused).

    JavaScript

    Allows controls to execute javascript code.

    Rotation

    Add rotation capabilities along the X,Y,Z axis to Control controls.

    StyleSheet

    Adds CSS styling to controls.

    ToolTip

    Represents a small rectangular pop-up window that displays a brief description of a control's purpose when the user rests the pointer on the control.

    ImageList

    Provides methods to manage a collection of Image objects. This class cannot be inherited.

    ColumnHeader

    Displays a standard column header in a ListView control.

    ImageColumnHeader

    Displays an image column header in a ListView control.

    CheckedMenuItem

    Represents an individual menu item that is displayed within a MainMenu or ContextMenu and always shows a checkbox next to the label.

    ContextMenu

    Represents a context menu associated to a Control.

    LinkMenuItem

    Represents an individual menu item that is displayed within a MainMenu or ContextMenu rendered using the <a> link element to let the browser process the specified HRef URL.

    MainMenu

    Represents the main menu in a Form.

    Menu

    Represents the base functionality for all menus.

    MenuItem

    Represents an individual item that is displayed within a MainMenu or ContextMenu.

    StatusBarControl

    Represents a panel in a StatusBar control that can host any Control.

    StatusBarPanel

    Represents a panel in a StatusBar control.

    ToolBarButton

    Represents an item in the ToolBar.

    BindableComponent
    Component
    DataBindings
    Timer
    DesktopTaskBarItem
    Desktop
    DesktopTaskBarItemControl
    Desktop
    Control
    DesktopTaskBarItemDateTime
    Desktop
    IWisejComponent
    IWisejSerializable

    Optional click handler.

    Initial size.

    onClick

    Optional click handler.

    All wisej components implement this interface.

    All wisej controls derived from the class must implement this interface.

    Allows an object to serialize itself.

    text

    String

    Initial text.

    onClick

    Action<Object, EventArgs>

    Optional Click handler.

    text

    String

    Initial text.

    location

    Point

    Initial location.

    size

    Size

    Initial size.

    text

    String

    Initial text.

    ImageSource

    String

    Image source.

    location

    Point

    Initial location.

    IBindableComponent

    Bindable components implement this interface.

    IButtonControl

    Allows a control to act like a button on a Form.

    ICommandSource

    Defines an object that can invoke a Command.

    IDropTarget

    Controls that support drag & drop operations implement this interface.

    IImage

    Provides access to common image properties across the controls that implement this interface.

    Button
    SplitButton
    Public Class SplitButton
        Inherits Button
    SplitButton
    SplitButton
    SplitButton
    SplitButton
    Orientation
    SplitButton
    Vertical
    public class SplitButton : Button

    onClick

    size

    All wisej controls derived from the class must implement this interface.

    Allows an object to serialize itself.

    Button

    Represents a button control.

    CheckBox

    Represents a check box control.

    RadioButton

    Enables the user to select a single option from a group of choices when paired with other RadioButton controls.

    SplitButton

    Represents a split button control.

    IBindableComponent

    Bindable components implement this interface.

    ICommandSource

    Defines an object that can invoke a Command.

    IDropTarget

    Controls that support drag & drop operations implement this interface.

    IImage

    Provides access to common image properties across the controls that implement this interface.

    IWisejComponent

    All wisej components implement this interface.

    Public Class ButtonBase
        Inherits Control
        Implements IImage, ICommandSource
    ButtonBase
    Boolean
    AllowHtml
    AllowHtml
    Boolean
    Boolean
    AutoShowLoader
    ShowLoader
    Boolean
    CharacterCasing
    ICommand
    ICommand
    Image
    ContentAlignment
    Int32
    ImageList
    ArgumentOutOfRangeException
    String
    ImageList
    ImageList
    ImageList
    Image
    String
    String
    AllowHtml
    AllowHtml
    ContentAlignment
    TextImageRelation
    Boolean
    Click
    EventHandler
    Command
    public class ButtonBase : Control, IImage, ICommandSource

    onClick

    Optional click handler.

    All wisej controls derived from the class must implement this interface.

    Allows an object to serialize itself.

    text

    String

    Initial text.

    onClick

    Action<Object, EventArgs>

    Optional Click handler.

    text

    String

    Initial text.

    location

    Point

    Initial location.

    size

    Size

    Initial size.

    onClick

    Action<Object, EventArgs>

    text

    String

    Initial text.

    ImageSource

    String

    Image source.

    location

    Point

    Initial location.

    size

    Size

    SplitButton

    Represents a split button control.

    IBindableComponent

    Bindable components implement this interface.

    IButtonControl

    Allows a control to act like a button on a Form.

    ICommandSource

    Defines an object that can invoke a Command.

    IDropTarget

    Controls that support drag & drop operations implement this interface.

    IImage

    Provides access to common image properties across the controls that implement this interface.

    IWisejComponent

    All wisej components implement this interface.

    Button
    Public Class Button
        Inherits ButtonBase
        Implements IButtonControl
    Button
    Button
    Button
    Button
    AutoSizeMode
    Button
    Boolean
    title
    BorderStyle
    DialogResult
    Display
    Display
    Nullable<Int32>
    MenuItemCollection
    MenuItem
    Boolean
    Shortcut
    Click
    MenuButtonItemClickedEventHandler
    EventHandler
    EventHandler
    public class Button : ButtonBase, IButtonControl

    Optional click handler.

    Initial size.

    public class FileDialog : CommonDialog
    Public Class FileDialog
        Inherits CommonDialog

    This class is abstract. The current implementations in Wisej are OpenFileDialog and SaveFileDialog. You can override this class or OpenFileDialog and SaveFileDialog to add your own custom behavior and localization. You can:

    • Override PromptFileNotFound. It's called when the specified file doesn't exist and the property CheckFileExists is true.

    • Override CreateUI to create your custom Form when the method ShowDialog is called.

    • Set the DialogTemplate to a Form class that has a constructor that accepts FileDialog as the single argument to change the User Interface (UI) of the file dialog.

    • Override to provide your custom implementation of the actions to execute when the user presses the OK button.

    You must add at least one FileSystemProvider to the Roots collection before showing the dialog.

    Constructors

    FileDialog()

    Initializes a new instance of FileDialog.

    FileDialog(roots)

    Initializes a new instance of FileDialog using the initial roots .

    Name
    Type
    Description

    roots

    Initial file systems to load in the .

    FileDialog(container)

    Initializes a new instance of the FileDialog extender with a specified container.

    Name
    Type
    Description

    container

    An that represents the container of the component.

    Properties

    AddExtension

    Boolean: Returns or sets whether the dialog box automatically adds an extension to a file name if the user omits the extension. (Default: True)

    CheckFileExists

    Boolean: Returns or sets whether the dialog box displays a warning if the user specifies a file name that does not exist. (Default: False)

    DefaultExtension

    String: Returns or sets the default file name extension. (Default: "")

    FileName

    String: Returns or sets a string containing the file name selected in the file dialog box. (Default: "")

    FileNames

    String[]: Returns the file names of all selected files in the dialog box.

    FileSystem

    IFileSystemProvider: Returns the IFileSystemProvider that contains the selected FileName.

    Filter

    String: Returns or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box. (Default: "")

    FilterIndex

    Int32: Returns or sets the index of the filter currently selected in the file dialog box. (Default: 1)

    InitialDirectory

    String: Returns or sets the initial directory displayed by the file dialog box. (Default: "")

    Roots

    FileDialogRootCollection: List of root IFileSystemProvider file systems displayed by the FileDialog.

    The Roots collection and the IFileSystemProvider implementations allow the application to use arbitrary names mapped to a specific path. For example, the app may add a root object named "Documents" to "c:\users[logged-user-id]\files\documents". Each user will see "Documents" as the root, but will also see only the files in the [logged-user-id] directory.

    ShowHelp

    Boolean: Returns or sets whether the Help button is displayed in the file dialog box. (Default: False)

    Title

    String: Returns or sets the file dialog box title. (Default: "")

    Methods

    GetRoot(path)

    Returns the IFileSystemProvider that contains the specified path .

    Parameter
    Type
    Description

    path

    Full path of the file to locate in on of the .

    Returns: IFileSystemProvider. The IFileSystemProvider that contains the specified path or null if not found.

    MapPath(filePath)

    Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.

    Parameter
    Type
    Description

    filePath

    Virtual path to map to the corresponding physical path.

    Returns: String. The physical path for the IFileSystemProvider implementation.

    ProcessFileNames(fileNames)

    Receives the file names selected by the user and validates them according to the properties set in the FileDialog instance.

    Parameter
    Type
    Description

    fileNames

    Array containing the selected file paths.

    Returns: Boolean. True if the files have been validated and the dialog can close; otherwise false to keep the dialog open.

    Reset()

    Resets all properties to their default values.

    Events

    FileOk

    CancelEventHandler Fired when the user clicks on the Open or Save button on a file dialog box.

    LoadPath

    FileDialogLoadPathEventHandler Fired when the file dialog is loading a file or folder.

    Inherited By

    Name
    Description

    Prompts the user to open a file from the server.

    Prompts the user to select a location for saving a file on the server.

    CommonDialog
    FileDialog

    container

    IContainer

    An IContainer that represents the container of the CommonDialog component.

    onclose

    Action<DialogResult>

    Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event. When the onclose event handler is specified, the modal dialog doesn't suspend the execution on the server but it's still shown as a modal dialog on the client.

    owner

    Form

    A Form that represents the top-level window that owns the modal dialog box. It can be null.

    owner

    Form

    A Form that represents the top-level window that owns the modal dialog box. It can be null.

    onclose

    Action<DialogResult>

    Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event. When the onclose event handler is specified, the modal dialog doesn't suspend the execution on the server but it's still shown as a modal dialog on the client.

    owner

    Form

    A Form that represents the top-level window that owns the modal dialog box. It can be null.

    ColorDialog

    Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.

    FileDialog

    Displays a dialog box from which the user can select a file.

    FolderBrowserDialog

    Allows the user to select a folder from one of the Roots.

    OpenFileDialog

    Prompts the user to open a file from the server.

    SaveFileDialog

    Prompts the user to select a location for saving a file on the server.

    CommonDialog
    CommonDialog
    Type
    ShowDialog
    Object
    String
    FormWindowState
    WindowState
    DialogResult
    OK
    Cancel
    DialogResult
    OK
    Cancel
    DialogResult
    OK
    Cancel
    DialogResult
    OK
    Cancel
    Task<DialogResult>
    OK
    Cancel
    EventHandler

    RadioButton

    Wisej.Web.RadioButton

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    • Control

      • ButtonBase

    Enables the user to select a single option from a group of choices when paired with other controls.

    Constructors

    RadioButton()

    Initializes a new instance of the class.

    RadioButton(text, onCheckedChanged)

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

    Name
    Type
    Description

    RadioButton(text, location, size, onCheckedChanged)

    Initializes a new instance of the class with specific initial settings.

    Name
    Type
    Description

    Properties

    Appearance

    : Returns or sets the value that determines the appearance of a control. (Default: Normal)

    AutoCheck

    : Returns or set a value indicating whether the or values and the 's appearance are automatically changed when the is clicked. (Default: True)

    AutoSize

    : Returns or sets a value that indicates whether the control resizes based on its contents. (Default: True)

    AutoToolTip

    : Returns or sets whether a tooltip is displayed when the text extends beyond the size of the control. (Default: False)

    The auto tooltip is set on the browser using the attribute managed by the browser, does not use the themed tooltip managed by Wisej.NET.

    CheckAlign

    : Returns or sets the horizontal and vertical alignment of the check mark on a control. (Default: MiddleLeft)

    Checked

    : Gets or sets whether the control is checked. (Default: False)

    CheckedForeColor

    : Returns or sets the text color used when the is checked. (Default: Color [Empty])

    Invalid

    : Returns or sets a value that indicates that the control is invalid.

    InvalidMessage

    : Returns or sets the invalid message that is shown in the invalid tooltip. (Default: "")

    ReadOnly

    : Returns or sets whether the control is read-only. (Default: False)

    TabStop

    : Returns or sets whether the user can give the focus to this control using the TAB key and the property is set to true. (Default: False)

    TextAlign

    : Returns or sets the alignment of the text on the control. (Default: MiddleLeft)

    Methods

    PerformClick()

    Generates a event for a .

    Events

    AppearanceChanged

    Fired when the value of the property changes.

    CheckedChanged

    Fired when the value of the property changes.

    ReadOnlyChanged

    Fired when the value of the property has changed.

    Implements

    Name
    Description

    Padding

    Wisej.Web.Padding

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Represents padding or margin information associated with a user interface (UI) element.

    public struct Padding : ValueType, IWisejSerializable
    Public Structure Padding
        Implements ValueType, IWisejSerializable

    Constructors

    Padding(left, top, right, bottom)

    Initializes a new instance of the class using a separate padding size for each edge.

    Name
    Type
    Description

    Padding(all)

    Initializes a new instance of the class using the supplied padding size for all edges.

    Name
    Type
    Description

    Properties

    All

    : Returns or sets the padding value for all the edges.

    Bottom

    : Returns or sets the padding value for the bottom edge.

    Horizontal

    : Returns the combined padding for the right and left edges.

    IsEmpty

    : Returns if the padding is empty.

    Left

    : Returns or sets the padding value for the left edge.

    Right

    : Returns or sets the padding value for the right edge.

    Size

    : Returns the padding information in the form of a .

    Top

    : Returns or sets the padding value for the top edge.

    Vertical

    : Returns the combined padding for the top and bottom edges.

    Methods

    Add(p1, p2)

    Computes the sum of the two specified values.

    Parameter
    Type
    Description

    Returns: . A that contains the sum of the two specified values.

    Subtract(p1, p2)

    Subtracts one specified value from another.

    Parameter
    Type
    Description

    Returns: . A that contains the result of the subtraction of one specified value from another.

    Used By

    Name
    Description

    CheckBox

    Wisej.Web.CheckBox

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Action<Object, EventArgs>
    Size
    Action<Object, EventArgs>
    IWisejComponent
    IWisejControl
    Control
    IWisejSerializable
    IWisejControl
    Control
    IWisejSerializable
    Action<Object, EventArgs>
    IWisejControl
    Control
    IWisejSerializable
    OnFileOk
    IFileSystemProvider[]
    FolderBrowserDialog
    IContainer
    IContainer
    FileDialog
    String
    Roots
    String
    String[]
    OpenFileDialog
    SaveFileDialog

    Optional handler.

    Provides access to the validation events and properties property for controls that support validation.

    All wisej components implement this interface.

    All wisej controls derived from the class must implement this interface.

    Allows an object to serialize itself.

    text

    String

    Initial text.

    onCheckedChanged

    Action<Object, EventArgs>

    Optional CheckedChanged handler.

    text

    String

    Initial text.

    location

    Point

    Initial location.

    size

    Size

    Initial size.

    IBindableComponent

    Bindable components implement this interface.

    ICommandSource

    Defines an object that can invoke a Command.

    IDropTarget

    Controls that support drag & drop operations implement this interface.

    IImage

    Provides access to common image properties across the controls that implement this interface.

    IReadOnly

    Provides access to the ReadOnly property for coontrols that support the read-only mode.

    RadioButton
    RadioButton
    Public Class RadioButton
        Inherits ButtonBase
        Implements IReadOnly, IValidation
    RadioButton
    RadioButton
    RadioButton
    Appearance
    CheckBox
    Boolean
    Checked
    CheckState
    CheckBox
    CheckBox
    Boolean
    Boolean
    title
    ContentAlignment
    CheckBox
    Boolean
    Color
    RadioButton
    Boolean
    String
    Boolean
    Boolean
    Focusable
    ContentAlignment
    CheckBox
    Click
    RadioButton
    EventHandler
    Appearance
    EventHandler
    Checked
    EventHandler
    ReadOnly
    public class RadioButton : ButtonBase, IReadOnly, IValidation

    onCheckedChanged

    The padding size, in pixels, for the bottom edge.

    Returns or sets the padding inside objects in any mode.

    Returns or sets padding within the statusbar panel.

    Returns or sets padding within the toolbar button.

    Returns or sets the space between toolbar buttons.

    Computes the sum of the two specified values.

    Returns the size of the inset border and padding.

    left

    Int32

    The padding size, in pixels, for the left edge.

    top

    Int32

    The padding size, in pixels, for the top edge.

    right

    Int32

    The padding size, in pixels, for the right edge.

    all

    Int32

    The number of pixels to be used for padding for all edges.

    p1

    Padding

    A Padding.

    p2

    Padding

    A Padding.

    p1

    Padding

    A Padding.

    p2

    Padding

    A Padding.

    Control.Padding

    Returns or sets padding within the control.

    Control.Margin

    Returns or sets the space between controls.

    DataGridViewCellStyle.Padding

    Returns or sets the space between the edge of a DataGridViewCell and its content.

    LabelWrapper.Padding

    Returns or sets the additional padding around the label. This property can be defined in the theme.

    UserPopup.Offset

    Returns or sets the offset in pixels from the calculated position of the popup.

    Padding
    Padding
    Int32
    Int32
    Int32
    Boolean
    Int32
    Int32
    Size
    Size
    Int32
    Int32
    Padding
    Padding
    Padding
    Padding
    Padding
    Padding
    Padding
    Padding

    bottom

    CheckBox

    Represents a check box control.

    public class CheckBox : ButtonBase, IReadOnly, IValidation
    Public Class CheckBox
        Inherits ButtonBase
        Implements IReadOnly, IValidation

    Constructors

    CheckBox()

    Initializes a new instance of the CheckBox class.

    CheckBox(text, onCheckedChanged)

    Initializes a new instance of the CheckBox class.

    Name
    Type
    Description

    text

    Initial text.

    onCheckedChanged

    Optional handler.

    CheckBox(text, location, size, onCheckedChanged)

    Initializes a new instance of the CheckBox class.

    Name
    Type
    Description

    text

    Initial text.

    location

    Initial location.

    size

    Initial size.

    Properties

    Appearance

    Appearance: Returns or sets the value that determines the appearance of a CheckBox control. (Default: Normal)

    AutoCheck

    Boolean: Returns or set a value indicating whether the Checked or CheckState values and the CheckBox's appearance are automatically changed when the CheckBox is clicked. (Default: True)

    AutoSize

    Boolean: Returns or sets a value that indicates whether the control resizes based on its contents. (Default: True)

    AutoToolTip

    Boolean: Returns or sets whether a tooltip is displayed when the text extends beyond the size of the control. (Default: False)

    The auto tooltip is set on the browser using the title attribute managed by the browser, does not use the themed tooltip managed by Wisej.NET.

    CheckAlign

    ContentAlignment: Returns or sets the horizontal and vertical alignment of the check mark on a CheckBox control. (Default: MiddleLeft)

    Checked

    Boolean: Returns or set a value indicating whether the CheckBox is in the checked state. (Default: False)

    CheckedForeColor

    Color: Returns or sets the text color used when the CheckBox is checked. (Default: Color [Empty])

    CheckState

    CheckState: Returns or sets the state of the CheckBox. (Default: Unchecked)

    Invalid

    Boolean: Returns or sets a value that indicates that the control is invalid.

    InvalidMessage

    String: Returns or sets the invalid message that is shown in the invalid tooltip. (Default: "")

    ReadOnly

    Boolean: Returns or sets whether the control is read-only. (Default: False)

    TextAlign

    ContentAlignment: Returns or sets the alignment of the text on the CheckBox control. (Default: MiddleLeft)

    ThreeState

    Boolean: Returns or sets whether the CheckBox will allow three check states rather than two. (Default: False)

    Methods

    PerformClick()

    Generates a Click event for a CheckBox.

    Events

    AppearanceChanged

    EventHandler Fired when the value of the Appearance property changes.

    CheckedChanged

    EventHandler Fired when the value of the Checked property changes.

    CheckStateChanged

    EventHandler Fired when the value of the CheckState property changes.

    ReadOnlyChanged

    EventHandler Fired when the value of the ReadOnly property has changed.

    Implements

    Name
    Description

    Bindable components implement this interface.

    Defines an object that can invoke a .

    Controls that support drag & drop operations implement this interface.

    Provides access to common image properties across the controls that implement this interface.

    Provides access to the property for coontrols that support the read-only mode.

    Control
    ButtonBase

    Configuration

    Wisej.Core.Configuration

    Namespace: Wisej.Core

    Assembly: Wisej.Framework (3.5.0.0)

    Configuration settings.

    public class Configuration
    Public Class Configuration

    Constructors

    Configuration(json)

    Creates a new instance from the specified json string.

    Name
    Type
    Description

    Properties

    AllowedRoutes

    : List of allowed Url routes separated by a semicolon. i.e.: "api;product;log/performance".

    AutoReload

    : When true, the application is automatically reloaded when the session expires or is called.

    The application can always override this feature by changing the Wisej.onExit method using a script.

    BrowserCheck

    : The custom function used to validate the browser. If it returns false the browser is not supported and Wisej redirects to NotSupportedUrl.

    Culture

    : Returns the culture set at the application's level. It can be any of the supported cultures or the keyword "auto", in which case we will detect the culture from the browser.

    Debug

    : Enables/disables debug mode.

    DisableClientObjectModel

    : When true, the client will not be able to access the application's controls using the object model registered with javascript under the "App" namespace.

    DropDuplicateClicks

    : When true, the client drops all "execute" events triggered while there is a pending request.

    EmbeddedResourcesCacheControl

    : Cache-Control for embedded resources. The default is "browser" to cache the embedded resources on the browser for 1 month. Other allowed vaues are: - "server" to cache the resources on the server using the ETag header - "private, max-age=..." to use set the standard Cache-Control header - any value Cache-Control string value.

    EnablePWA

    : Enables the PWA installation of the application.

    EnableWebSocket

    : Enables/disables the WebSocket protocol.

    EnableWebSocketCompression

    : Enables/disables gzip compression when using the WebSocket protocol.

    FilePath

    : The full path of the configuration file.

    Impersonate

    : Enables impersonation mode.

    When set to true and windows authentication is configured in web.config, every request thread and application tasks started using Application.StartTask will impersonate the current user.

    KeepAliveInterval

    : The keep-alive interval in seconds.

    Loader

    : Name of the page loader resource to show at startup.

    LoaderTimeout

    : The ajax loader timeout in milliseconds.

    MainWindow

    : Full name of the first window created automatically at startup.

    MaxModalStack

    : Returns the maximum number of nested modal loops.

    MaxSessions

    : Returns the maximum number of active sessions before redirecting to .

    NetworkCheckInterval

    : Network check interval in milliseconds. The default is 1000 (1 second). If this value is set, Wisej will send a /healthcheck.wx request at the specified interval when the application goes offline.

    NotAvailableUrl

    : The URL of the page to load when the server cannot respond to the request.

    NotSupportedUrl

    : The URL of the page to load when the client browser is not supported.

    OfflineUrl

    : The URL of the page to load when the connection is lost.

    Options

    : Native client-side platform options.

    PollingInterval

    : Polling interval in milliseconds. The default is zero (disabled). If this value is set, the polling starts when the application is loaded.

    The polling interval determines the frequency of the automatic poll requests coming from the client when a WebSocket connection is not available. When the client is connected using a WebSocket channel, this value is ignored. An application that wants to enable automatic client updates in absence of a WebSocket connection can set this value, or it can call and to start and terminate the automatic polling from the client. Both methods are ignored when the client is using a WebSocket connection.

    ResponseTimeout

    : The timeout for the server to respond to a Wisej request in seconds.

    RightToLeft

    : Returns the rightToLeft mode. It can be "true", "false", or "auto". When set to "auto" the RightToLeft layout is enabled automatically using the current language. The default is "auto".

    Secure

    : Forces the client to switch to a secure connection (HTTPS and WSS).

    SessionStorage

    : Where to save the session id on the client. The default is "session" to indicate the browser's sessionStorage. It can be changed to "local" to indicate the browser's localStorage.

    SessionTimeout

    : The session timeout in seconds. The timeout is enforced on the client side.

    Settings

    : Application settings.

    ShowLoader

    : Shows the loader animated gif while initializing the application.

    StartUp

    : The startup Main method.

    ThemeName

    : Theme name.

    ThreadPool

    : ThreadPool min/max configuration, null by default.

    Url

    : Url redirection.

    ValidateClient

    : Verifies the client's unique id when retrieving a session. It prevents session hijacking over unsecured connections.

    ValidateResources

    : Verifies that resource requests are received from the user's authorizes browser. Prevents reusing a resource URL from an unauthorized browser.

    WebSocketCompressionThreshold

    : Sets the response size that triggers the compression of the response over the WebSocket channel.

    Methods

    GetInstance(filePath, uri)

    Loads or retrieves the configuration file.

    Parameter
    Type
    Description

    Returns: .

    Events

    LoadConfiguration

    Fired when the system needs to load a Wisej configuration file.

    An application can install a custom configuration handler and return a custom object. In alternative, the handler can change the value of and let Wisej.NET load the alternative json file. This is a static event and should be attached to before the application starts. One way to do that is to register an HttpModuleStartup method with IIS when using .NET 4.8. When running on .NET Core, attach to the event in the Startup method.

    Control.ControlCollection

    Wisej.Web.Control ControlCollection

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Represents a collection of Control objects.

    public class ControlCollection : ControlCollection, IList<Control>, ICollection<Control>, IEnumerable<Control>, IWisejSynchronized
    Public Class ControlCollection
        Inherits ControlCollection
        Implements IList(Of Control), ICollection(Of Control), IEnumerable(Of Control), IWisejSynchronized

    Constructors

    ControlCollection(owner)

    Initializes a new instance of the class.

    Name
    Type
    Description

    Properties

    IsDisposed

    : Returns whether the owner control has already been disposed.

    Item(index)

    : Returns the at the specified indexed location.

    Item(key)

    : Returns the with the specified key in the collection.

    Owner

    : Returns the control that owns this .

    Methods

    Add(child)

    Adds the specified control to the control collection.

    Parameter
    Type
    Description

    AddRange(controls)

    Adds an array of control objects to the collection.

    Parameter
    Type
    Description

    Clear()

    Removes all controls from the collection.

    Clear(dispose)

    Removes and disposes all controls from the collection.

    Parameter
    Type
    Description

    Contains(control)

    Determines whether the specified control is a member of the collection.

    Parameter
    Type
    Description

    Returns: . true if the is a member of the collection; otherwise, false.

    ContainsKey(key)

    Determines whether the contains an item with the specified key.

    Parameter
    Type
    Description

    Returns: . true if the contains an item with the specified key; otherwise, false.

    Find(type, searchAllChildren)

    Searches for controls by their type and builds an array of all the controls that match.

    Parameter
    Type
    Description

    Returns: . Array of controls that are derived from the specified type .

    Throws:

    • type is null.

    Find(key, searchAllChildren)

    Searches for controls by their name and builds an array of all the controls that match.

    Parameter
    Type
    Description

    Returns: . Array of controls with the specified name.

    Throws:

    • The key parameter is null or an empty string ("").

    GetChildIndex(child, throwException)

    Retrieves the index of the specified child control within the control collection, and optionally raises an exception if the specified control is not within the control collection.

    Parameter
    Type
    Description

    Returns: . A zero-based index value that represents the location of the specified child control within the control collection; otherwise -1 if the specified is not found in the .

    Throws:

    • The child is not in the , and the throwException parameter value is true.

    GetEnumerator()

    Retrieves a reference to an enumerator object that is used to iterate over a .

    Returns: . An .

    IndexOf(control)

    Retrieves the index of the specified control in the control collection.

    Parameter
    Type
    Description

    Returns: . A zero-based index value that represents the position of the specified in the .

    IndexOfKey(key)

    Retrieves the index of the first occurrence of the specified item within the collection.

    Parameter
    Type
    Description

    Returns: . The zero-based index of the first occurrence of the control with the specified name in the collection.

    Remove(child)

    Removes the specified control from the control collection.

    Parameter
    Type
    Description

    RemoveByKey(key)

    Removes the child control with the specified key.

    Parameter
    Type
    Description

    SetChildIndex(child, newIndex)

    Sets the index of the specified child control in the collection.

    Parameter
    Type
    Description

    Inherited By

    Name
    Description
    Action<Object, EventArgs>
    CheckedChanged
    IValidation
    IWisejComponent
    IWisejControl
    Control
    IWisejSerializable
    Int32
    ListView.ItemPadding
    ListViewItem
    View
    StatusBarPanel.Padding
    ToolBarButton.Padding
    ToolBarButton.Margin
    Padding.Add
    Padding
    ClientTheme.GetInsets

    owner

    Control

    The Control that owns this collection.

    child

    Control

    The Control to add.

    controls

    Control[]

    An array of Control objects to add to the collection.

    dispose

    Boolean

    Indicates whether the controls removed from the collection should be disposed.

    control

    Control

    The Control to locate in the collection.

    key

    String

    The key to locate in the ControlCollection.

    type

    Type

    The type of the controls to locate in the ControlCollection.

    searchAllChildren

    Boolean

    true to search all child controls; otherwise, false.

    key

    String

    The key to located in the ControlCollection.

    searchAllChildren

    Boolean

    true to search all child controls; otherwise, false.

    child

    Control

    The Control to search for in the control collection.

    throwException

    Boolean

    true to throw an exception if the Control specified in the child parameter is not a control in the ControlCollection; otherwise, false.

    control

    Control

    The Control to locate in the collection.

    key

    String

    The name of the control to search for.

    child

    Control

    The Control to remove.

    key

    String

    The name of the child control to remove.

    child

    Control

    The child control to search for.

    newIndex

    Int32

    The new index value of the control.

    TableLayoutControlCollection

    Represents a collection of child controls in a table layout container.

    ControlCollection
    Boolean
    Control
    Control
    Control
    Control
    Control
    ControlCollection
    Boolean
    Control
    ControlCollection
    Boolean
    ControlCollection
    Control[]
    ArgumentNullException
    Control[]
    ArgumentNullException
    Int32
    Control
    ControlCollection
    ArgumentException
    Control
    ControlCollection
    ControlCollection
    IEnumerator
    IEnumerator
    Int32
    Control
    ControlCollection
    Int32

    onCheckedChanged

    Action<Object, EventArgs>

    Optional CheckedChanged handler.

    IValidation

    Provides access to the validation events and properties property for controls that support validation.

    IWisejComponent

    All wisej components implement this interface.

    IWisejControl

    All wisej controls derived from the Control class must implement this interface.

    IWisejSerializable

    Allows an object to serialize itself.

    String
    Action<Object, EventArgs>
    CheckedChanged
    String
    Point
    Size
    IBindableComponent
    ICommandSource
    Command
    IDropTarget
    IImage
    IReadOnly
    ReadOnly

    json

    String

    The json string that defines the configuration values.

    filePath

    String

    The full path to the .json file to load.

    uri

    Uri

    The current Uri representing the site being loaded.

    String[]
    Boolean
    Exit
    String
    String
    Boolean
    Boolean
    Boolean
    String
    Boolean
    Boolean
    Boolean
    String
    Boolean
    Int32
    String
    Int32
    String
    Int32
    Int32
    NotAvailableUrl
    Int32
    String
    String
    String
    Object
    Int32
    StartPolling
    EndPolling
    Int32
    String
    Boolean
    String
    Int32
    Object
    Boolean
    String
    String
    Object
    String
    Boolean
    Boolean
    Int32
    Configuration
    LoadConfigurationEventHandler
    Configuration
    FilePath
    
      <script>
        Wisej.onExit = function() {
          // this is the default implementation
          // when AutoReload is set to true.
          location.reload();
        }
      </script>
    
    
    [assembly: PreApplicationStartMethod(typeof(ApplicationNameSpace.HttpModuleStartup), "Start")]
    
    namespace ApplicationNameSpace
    {
      public static class HttpModuleStartup
      {
        public static void Start()
        {
          Wisej.Core.Configuration.LoadConfiguration += (s, e) =>
          {
            // load json from a file, or build a json object.
            // you can also implement your own caching mechanism here.
            
            e.SuppressCache = true;
            
            return new Wisej.Core.Configuration(new
            {
              url = "Default.html",
              theme = "bootstrap-4",
              startup = "ApplicationNameSpace.Program.Main, Application"
              
            }.ToJSON());
          }
        }
      }
    }
    

    Clipboard

    Wisej.Web.Clipboard

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Provides methods to place data on and retrieve data from the system Clipboard. This class cannot be inherited.

    public class Clipboard
    Public Class Clipboard

    Methods

    Clear()

    Removes all data from the Clipboard.

    ContainsAudio()

    Indicates whether there is data on the Clipboard in the format.

    Returns: . true if there is audio data on the Clipboard; otherwise, false.

    ContainsData(format)

    Indicates whether there is data on the Clipboard that is in the specified format or can be converted to that format.

    Parameter
    Type
    Description

    Returns: . true if there is data on the Clipboard that is in the specified format or can be converted to that format; otherwise, false.

    ContainsFileDropList()

    Indicates whether there is data on the Clipboard that is in the format or can be converted to that format.

    Returns: . true if there is a file drop list on the Clipboard; otherwise, false.

    ContainsImage()

    Indicates whether there is data on the Clipboard that is in the format or can be converted to that format.

    Returns: . true if there is image data on the Clipboard; otherwise, false.

    ContainsText()

    Indicates whether there is data on the Clipboard in the or format, depending on the operating system.

    Returns: . true if there is text data on the Clipboard; otherwise, false.

    ContainsText(format)

    Indicates whether there is text data on the Clipboard in the format indicated by the specified value.

    Parameter
    Type
    Description

    Returns: . true if there is text data on the Clipboard in the value specified for format ; otherwise, false.

    GetAudioStream()

    Retrieves an audio stream from the Clipboard.

    Returns: . A containing audio data or null if the Clipboard does not contain any data in the format.

    GetData(format)

    Retrieves data from the Clipboard in the specified format.

    Parameter
    Type
    Description

    Returns: . An representing the Clipboard data or null if the Clipboard does not contain any data that is in the specified format or can be converted to that format.

    GetDataObject()

    Retrieves the data that is currently on the system Clipboard.

    Returns: . An that represents the data currently on the Clipboard, or null if there is no data on the Clipboard.

    GetFileDropList()

    Retrieves a collection of file names from the Clipboard.

    Returns: . A containing file names or null if the Clipboard does not contain any data that is in the format or can be converted to that format.

    GetImage()

    Retrieves an image from the Clipboard.

    Returns: . An representing the Clipboard image data or null if the Clipboard does not contain any data that is in the format or can be converted to that format.

    GetText()

    Retrieves text data from the Clipboard in the or format, depending on the operating system.

    Returns: . The Clipboard text data or if the Clipboard does not contain data in the or format, depending on the operating system.

    GetText(format)

    Retrieves text data from the Clipboard in the format indicated by the specified value.

    Parameter
    Type
    Description

    Returns: . The Clipboard text data or if the Clipboard does not contain data in the specified format.

    SetAudio(audioBytes)

    Saves the array in the format after converting it to a to the clipboard.

    Parameter
    Type
    Description

    Throws:

    • audioBytes is null.

    SetAudio(audioStream)

    Saves the in the format to the clipboard.

    Parameter
    Type
    Description

    Throws:

    • audioStream is null.

    SetClientText(text)

    Saves the text data to the client's temporary clipboard. Client side javascript code can copy the clipboard's content to the browser's clipboard calling Wisej.Core.copy();

    Parameter
    Type
    Description

    Throws:

    • text is null.

    SetData(format, data)

    Saves the specified data to the clipboard in the specified format.

    Parameter
    Type
    Description

    Throws:

    • data is null.

    SetDataObject(data)

    Saves the specified data to the clipboard.

    Parameter
    Type
    Description

    Throws:

    • The value of data is null.

    SetFileDropList(filePaths)

    Saves the collection of file names in the format to the clipboard.

    Parameter
    Type
    Description

    Throws:

    • filePaths is null.

    • filePaths does not contain any strings, or at least one of the strings in filePaths is empty, contains only white space, contains one or more invalid characters as defined by , is null, contains a colon (:), or exceeds the system-defined maximum length. See the property of the for more information.

    SetImage(image)

    Saves the in the format to the clipboard

    Parameter
    Type
    Description

    Throws:

    • image is null.

    SetText(text)

    Saves the text data in the format to the clipboard.

    Parameter
    Type
    Description

    Throws:

    • text is null or .

    SetText(text, format)

    Saves the text data in the format indicated by the specified value to the clipboard.

    Parameter
    Type
    Description

    Throws:

    • text is null.

    SwipeEventArgs

    Wisej.Web.SwipeEventArgs

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Provides data for event.

    Properties

    format

    String

    The format of the data to look for. See DataFormats for predefined formats.

    format

    TextDataFormat

    One of the TextDataFormat values.

    format

    String

    The format of the data to retrieve. See DataFormats for predefined formats.

    format

    TextDataFormat

    One of the TextDataFormat values.

    audioBytes

    Byte[]

    A Byte array containing the audio data.

    audioStream

    Stream

    A Stream containing the audio data.

    text

    String

    The text to save to the client's temporary clipboard.

    format

    String

    The format of the data to set. See DataFormats for predefined formats.

    data

    Object

    An Object representing the data to add.

    data

    Object

    The data to place on the Clipboard.

    filePaths

    StringCollection

    A StringCollection containing the file names.

    image

    Image

    The Image to add to the Clipboard.

    text

    String

    The text to add to the Clipboard.

    text

    String

    The text to add to the Clipboard.

    format

    TextDataFormat

    One of the TextDataFormat values.

    WaveAudio
    Boolean
    Boolean
    FileDrop
    Boolean
    Bitmap
    Boolean
    Text
    UnicodeText
    Boolean
    TextDataFormat
    Boolean
    Stream
    Stream
    WaveAudio
    Object
    Object
    IDataObject
    IDataObject
    StringCollection
    StringCollection
    FileDrop
    Image
    Image
    Bitmap
    Text
    UnicodeText
    String
    Empty
    Text
    UnicodeText
    TextDataFormat
    String
    Empty
    Byte
    WaveAudio
    Stream
    ArgumentNullException
    Stream
    WaveAudio
    ArgumentNullException
    ArgumentNullException
    ArgumentNullException
    ArgumentNullException
    FileDrop
    ArgumentNullException
    ArgumentException
    InvalidPathChars
    InnerException
    ArgumentException
    Image
    Bitmap
    ArgumentNullException
    UnicodeText
    ArgumentNullException
    Empty
    TextDataFormat
    ArgumentNullException
    Axis

    SwipeAxis: Returns whether the performed swipe was on the x or y axis.

    Direction

    SwipeDirection: Returns the direction of the performed swipe in reference to the axis: X = Up / Down Y = Left / Right

    Distance

    Int32: Returns the distance of the performed swipe.

    Duration

    Int32: Returns the duration the performed swipe took.

    StartTime

    Int64: Returns the start time of the performed swipe.

    Velocity

    Double: Returns the velocity of the performed swipe.

    Used By

    Name
    Description

    Represents the method that will handle the event.

    Swipe
    Public Class SwipeEventArgs
        Inherits EventArgs
    public class SwipeEventArgs : EventArgs

    Accordion

    Wisej.Web.Accordion

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Displays collapsible set of panels for presenting information in a limited amount of space.

    SwipeEventHandler
    Swipe
    public class Accordion : Control, ISupportInitialize
    Public Class Accordion
        Inherits Control
        Implements ISupportInitialize

    Constructors

    Accordion()

    Initializes a new instance of the Accordion class.

    Accordion(panels, onSelectedIndexChanged)

    Initializes a new instance of the Accordion class with the specified settings.

    Name
    Type
    Description

    panels

    An array of objects to be added to the panel.

    onSelectedIndexChanged

    An Action delegate to handle the event.

    Accordion(location, size, onSelectedIndexChanged)

    Initializes a new instance of the Accordion class with the specified settings.

    Name
    Type
    Description

    location

    The location of the panel on its parent control.

    size

    The size of the panel.

    onSelectedIndexChanged

    An Action delegate to handle the event.

    Accordion(location, size, panels, onSelectedIndexChanged)

    Initializes a new instance of the Accordion class with the specified settings.

    Name
    Type
    Description

    location

    The location of the panel on its parent control.

    size

    The size of the panel.

    panels

    An array of objects to be added to the panel.

    Properties

    BorderStyle

    BorderStyle: Returns or sets the type of border that is drawn around the Accordion panel. (Default: Solid)

    Collapsible

    Boolean: Returns or sets a value indicating whether the Accordion control collapses when all the AccordionPanel children are collapsed. (Default: False)

    When this property is set to false (default) one panel is always expanded.

    DisplayRectangle

    Rectangle: Returns the rectangle that represents the virtual display area of the control.

    HeaderSize

    Int32: Returns or sets the size of the header. When the header is horizontal, the size if the height; when it's vertical, the size if the width. Set it to -1 to reset to the size set in the current theme.

    ImageList

    ImageList: Returns or sets the images to display on the panel's title bar. (Default: null)

    PanelCount

    Int32: Returns the number of panels in the container.

    Panels

    PanelCollection: Returns the collection of panels in the container.

    SelectedIndex

    Int32: Returns or sets the index of the currently selected panel. (Default: -1)

    Throws:

    • ArgumentOutOfRangeException The value is less than -1.

    SelectedOnTop

    Boolean: Returns or sets a value indicating whether the selected panel is moved to the top of the Accordion container. (Default: False)

    SelectedPanel

    AccordionPanel: Returns or sets the currently selected panel.

    ShowToolTips

    Boolean: Returns or sets whether a panel's ToolTip is shown when the mouse passes over the panel's title. (Default: True)

    Methods

    DeselectPanel(index)

    Makes the AccordionPanel following the AccordionPanel with the specified index the current panel.

    Parameter
    Type
    Description

    index

    The index in the collection of the to deselect.

    Throws:

    • ArgumentOutOfRangeException index is less than 0 or greater than the number of AccordionPanel controls in the Panels collection minus 1.

    DeselectPanel(panel)

    Makes the AccordionPanel following the specified AccordionPanel the current panel.

    Parameter
    Type
    Description

    panel

    The to deselect.

    Throws:

    • ArgumentNullException panel is null.

    DeselectPanel(panelName)

    Makes the AccordionPanel following the AccordionPanel the specified name the current panel.

    Parameter
    Type
    Description

    panelName

    The of the panel to deselect.

    Throws:

    • ArgumentNullException panelName is null; or panelName does not match the Name property of any AccordionPanel in the Panels collection.

    GetControl(index)

    Returns the AccordionPanel panel at the specified location.

    Parameter
    Type
    Description

    index

    The index of the to get.

    Returns: Control. The AccordionPanel at the specified location.

    Throws:

    • ArgumentOutOfRangeException index is less than 0 or greater than the number of AccordionPanel controls in the Panels collection minus 1.

    SelectPanel(index)

    Makes the AccordionPanel with the specified index the current AccordionPanel.

    Parameter
    Type
    Description

    index

    The index in the collection of the tab to select.

    Throws:

    • ArgumentOutOfRangeException index is less than 0 or greater than the number of AccordionPanel controls in the Panels collection minus 1.

    SelectPanel(panel)

    Makes the specified AccordionPanel the current AccordionPanel.

    Parameter
    Type
    Description

    panel

    The to select.

    Throws:

    • ArgumentNullException panel is null.

    SelectPanel(panelName)

    Makes AccordionPanel with the specified name the current AccordionPanel.

    Parameter
    Type
    Description

    panelName

    The of the tab to select.

    Throws:

    • ArgumentNullException panelName is null; or panelName does not match the Name property of any AccordionPanel in the Panels collection.

    Events

    Deselected

    AccordionEventHandler Fired when a panel is deselected.

    Deselecting

    AccordionCancelEventHandler Occurs before a panel is deselected, enabling a handler to cancel the panel change.

    Selected

    AccordionEventHandler Fired when a panel is selected.

    SelectedIndexChanged

    EventHandler Fired when the SelectedIndex property has changed.

    Selecting

    AccordionCancelEventHandler Occurs before a panel is selected, enabling a handler to cancel the panel change.

    Implements

    Name
    Description

    Bindable components implement this interface.

    Controls that support drag & drop operations implement this interface.

    All wisej components implement this interface.

    All wisej controls derived from the class must implement this interface.

    Allows an object to serialize itself.

    Control
    Accordion
    AccordionPanel

    ClientTheme

    Wisej.Core.ClientTheme

    Namespace: Wisej.Core

    Assembly: Wisej.Framework (3.5.0.0)

    Represents a Wisej theme.

    public class ClientTheme : IWisejSerializable
    Public Class ClientTheme
        Inherits IWisejSerializable

    You can create a new custom theme based on an existing theme, empty, or initialized from a JSON string.

    You can alter any aspect of a theme by using the dynamic properties: Colors, Images, Fonts, Appearances, Settings, and Stylesheet. These properties, being dynamic, can support any field and any structure. To alter these properties in a way that doesn't break the theme, look at the theme's structure in the ThemeBuilder or a text editor. To save a custom theme you may convert it to a JSON string simply by calling the extension method added to all objects by the Wisej framework.

    Constructors

    ClientTheme(name)

    Default private constructor.

    Name
    Type
    Description

    ClientTheme(name, json)

    Constructs a new theme from the name and JSON definition.

    Name
    Type
    Description

    ClientTheme(name, baseTheme)

    Constructs a new theme from the base theme.

    Name
    Type
    Description

    Properties

    Appearances

    : Theme appearances.

    This is a complex dynamic object with several child objects. The structure can get quite complicated. Before messing with the Appearances object, please study the structure of the themes using the ThemeBuilder or a text editor. Being a dynamic object, you can either create a new appearance or alter an existing appearance at any level.

    Colors

    : Theme colors.

    You can add or change any color in the current theme:

    Fonts

    : Theme fonts.

    You can add or alter any font to the theme. The structure of the font definition can get complicated. Please refer to the existing themes and the ThemeBuilder to determine the structure to use. The simplest way is to change an existing theme font:

    Images

    : Theme images.

    You can add or change any theme image. Images in the theme are just URLs but can be defined in several ways:

    • Absolute URL An URL starting with http: or https: pointing to an image resource.

    • Relative URL An URL relative to the current site or relative to value of Images.baseUrl.

    • base64 A base64 encoded embedded image.

    Name

    : The name of the theme.

    Settings

    : Theme settings.

    The Settings property allows a theme to define certain internal properties. Currently these are the supported properties:

    • native-scrollbars Instructs Wisej.NET to use the native scrollbars instead of the themed scrollbars. Setting this property can have negative side effects for virtual scrolling widgets like the DataGridView. The default is false.

    • overlapped-scrollbars Instructs Wisej to layout the scrollbars over the content being scrolled, similar to Windows' fluent themes or mobiles. The default is false.

    Stylesheet

    : Stylesheet rules embedded in the theme.

    The Stylesheet property is a new theme property added since Wisej 2.0. It allows a theme to define a set of CSS rules, just as if Default.html specified a css file. This property has only one string array field: "rules". When the theme is rendered, the client library joins all the rules into a css string and creates a stylesheet loaded into the browser.

    Methods

    GetColor(appearance, name, state)

    Returns the resolved color defined in the theme for the specified appearance, property or style name and optionally the state.

    Parameter
    Type
    Description

    Returns: . A representing the color in the theme.

    GetColor(name)

    Returns the resolved theme color from the color list.

    Parameter
    Type
    Description

    Returns: . A representing the color in the theme.

    GetFont(appearance, name, state)

    Returns the resolved font defined in the theme for the specified appearance, property name and optionally the state.

    Parameter
    Type
    Description

    Returns: . A representing the queried font or null if not found.

    GetFont(name)

    Returns the resolved font defined from the font list.

    Parameter
    Type
    Description

    Returns: . A representing the queried font or null if not found.

    GetImage(appearance, name, state)

    Returns the resolved image defined in the theme for the specified appearance, property or style name and optionally the state.

    Parameter
    Type
    Description

    Returns: . A representing the queried image or null if not found. SVG images at runtime always return null, they are resolved only at design time.

    GetImage(name)

    Returns the resolved image defined from the image list.

    Parameter
    Type
    Description

    Returns: . A representing the queried image or null if not found. SVG images at runtime always return null, they are resolved only at design time.

    GetInsets(appearance, state, includePadding)

    Returns the size of the inset border and padding.

    Parameter
    Type
    Description

    Returns: . Dimension of the border and optionally the padding as a value

    GetProperty<T>(appearance, name, state)

    Returns the property value for the specified name and state within the specified appearance key.

    Parameter
    Type
    Description

    Returns: . The typed value of the requested property, or default(T) if not found.

    GetStyle<T>(appearance, name, state)

    Returns the style value for the specified name and state within the specified appearance key.

    Parameter
    Type
    Description

    Returns: . The typed value of the requested style, or default(T) if not found.

    IsThemeColor(color)

    Returns true if the color is a theme color.

    Parameter
    Type
    Description

    Returns: . True if color is a theme color.

    Since the theme may also define , using on a system color returns false, but the rendering on the browser will use the color in the theme, if defined.

    IsThemeFont(font)

    Returns true if the font is a theme font.

    Parameter
    Type
    Description

    Returns: . True if font is a theme font.

    Theme fonts (font's with the starting with "@") are always rendered using the definition in the theme for their size and style. However, an application may use a theme font and change the size and style. In this case, the is the theme name without the "@". If the name of the font (which could be a system name like "Arial") matches a theme font, Wisej will use the theme font but it uses the size and style set by the application.

    TranslateColor(color)

    Returns the resolved with the proper RGB values. If the color specified in color is a theme color, the value is resolved from the current theme, otherwise the original color is returned.

    Parameter
    Type
    Description

    Returns: . A instance with the resolved RGB values.

    TranslateFont(font)

    Returns the resolved from the theme font. If the font is a theme font, the value is resolved from current theme.

    Parameter
    Type
    Description

    Returns: . A instance that can be used directly.

    Implements

    Name
    Description
    
    // create a new custom theme cloned from the current theme.
    var myTheme1 = new ClientTheme("MyTheme1", Application.Theme);
    
    // create a new custom theme from a JSON string.
    var myTheme2 = new ClientTheme("MyTheme2", json);
    

    onSelectedIndexChanged

    Action<Object, EventArgs>

    An Action delegate to handle the SelectedIndexChanged event.

    AccordionPanel[]
    AccordionPanel
    Action<Object, EventArgs>
    SelectedIndexChanged
    Point
    Size
    Action<Object, EventArgs>
    SelectedIndexChanged
    Point
    Size
    AccordionPanel[]
    AccordionPanel
    Int32
    Panels
    AccordionPanel
    AccordionPanel
    AccordionPanel
    String
    Name
    Int32
    AccordionPanel
    Int32
    Panels
    AccordionPanel
    AccordionPanel
    String
    Name
    IBindableComponent
    IDropTarget
    IWisejComponent
    IWisejControl
    Control
    IWisejSerializable

    name

    String

    Unique name of the theme.

    name

    String

    Unique name of the theme.

    json

    String

    JSON definition of the theme.

    name

    String

    Unique name of the theme.

    baseTheme

    ClientTheme

    Original theme to copy into the new theme.

    appearance

    String

    The appearance path that identifies the component in the theme. Nested appearances can be specified using a forward slash: i.e. window/captionbar.

    name

    String

    The name of the property or the style value to query.

    state

    String

    The name of the state to query. It's optional. The default is "default".

    name

    String

    The name of the color to resolve from the color list.

    appearance

    String

    The appearance path that identifies the component in the theme. Nested appearances can be specified using a forward slash: i.e. window/captionbar.

    name

    String

    The name of the property value to query.

    state

    String

    The name of the state to query. It's optional. The default is "default".

    name

    String

    appearance

    String

    The appearance path that identifies the component in the theme. Nested appearances can be specified using a forward slash: i.e. window/captionbar.

    name

    String

    The name of the property or the style value to query.

    state

    String

    The name of the state to query. It's optional. The default is "default".

    name

    String

    appearance

    String

    The name of the appearance in the theme. Child component appearances can be specified using the forward slash, i.e. "button/icon".

    state

    String

    The state that defines the property. It can omitted, the default state is "default".

    includePadding

    Boolean

    Whether to include padding in the insets dimension.

    T

    The Type of the value to retrieve.

    appearance

    String

    The name of the appearance in the theme. Child component appearances can be specified using the forward slash, i.e. "button/icon".

    name

    String

    The name of the property to retrieve.

    state

    String

    T

    The Type of the value to retrieve.

    appearance

    String

    The name of the appearance in the theme. Child component appearances can be specified using the forward slash, i.e. "button/icon".

    name

    String

    The name of the property to retrieve.

    state

    String

    color

    Color

    Color to check.

    font

    Font

    Font to check.

    color

    Color

    The Color to resolve to a usable value.

    font

    Font

    The Font to resolve to a usable instance.

    IWisejSerializable

    Allows an object to serialize itself.

    ToJSON
    Object
    Object
    Object
    Object
    String
    Object
    Object
    Color
    Color
    Color
    Color
    Font
    Font
    Font
    Font
    Image
    Image
    Image
    Image
    Padding
    Padding
    T
    T
    Boolean
    SystemColors
    IsThemeColor
    Boolean
    OriginalFontName
    OriginalFontName
    Color
    Color
    Color
    Font
    Font
    Font

    The state that defines the property. It can omitted, the default state is "default".

    The state that defines the property. It can omitted, the default state is "default".

    
    // alter the border of buttons.
    // note that when there is a keyword clash you can use the @ prefix.
    Application.Theme.Appearances.button.states.@default.styles.width = 3;
    Application.Theme.Appearances.button.states.@default.styles.radius = 0;
    
    // additionally, you my use a string indexer to reach any property.
    Application.Theme.Appearances.button.states["default"].styles.radius = 0;
    
    
    
    // change existing color.
    Application.Theme.Colors.buttonFace = "red";
    
    // create a new color.
    Application.Theme.Colors.myCoolColor = "rgba(5,23,55,0.9)";
    
    // since the theme objects are all dynamic and use a special DynamicObject
    // class part of the Wisej Framework, you can also use a string indexer
    // to address any field.
    Application.Theme.Colors["buttonFace"] = "red";
    
    
    
    
    // make the window title bigger and bold.
    Application.Theme.Fonts.windowTitle.size = 18;
    Application.Theme.Fonts.windowTitle.bold = true;
    
    
    
    
    // create a custom css rules in the theme.
    Application.Theme.Stylesheet.rules = new []{
    
      "body: { background-color: red };",
      ".myClass: { background-color: red };"
    };
    
    

    Application

    Wisej.Web.Application

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Represent a Wisej application session. Provides methods and events to manage the application in the context of the current session.

    public class Application : IWisejComponent, IDisposable, IWisejSynchronized
    Public Class Application
        Inherits IWisejComponent
        Implements IDisposable, IWisejSynchronized

    This class provides several static methods, properties and events that allow the application to manage all sorts of features related to the current session:

    • Save and retrieve session variable. Use to store and retrieve session variable. The property is a dynamic object and a , therefore you can access its properties directly or through the indexer.

    • Manage cookies. Use to manage browser's cookies.

    • Read server variables. Use to retrieve all the data made available by the server. Some of the variables in the collection are also available directly: , , , etc.

    • Read the application's URL. Use , , , and .

    There is a lot more exposed by the class. You can inspect all the properties and methods in Visual Studio through IntelliSense or online at .

    Properties

    ActiveProfile

    : Returns or sets the current client responsive profile.

    This is the profile that best matches the current browser on the client. It is updated automatically on every request.

    Browser

    : Returns or the client browser's information.

    ClientCertificate

    : EXPERIMENTAL: Provides the client certificate fields issued by the client in response to the server's request for the client's identity. Since 3.5.6

    ClientId

    : Returns the current unique client id.

    Clients

    : Returns a collection of all the unique client browsers using the application.

    CommandManager

    : Returns the current .

    CommonAppDataPath

    : Returns the path for the application data that is shared among all users.

    CommonAppDataRegistry

    : Returns the registry key for the application data that is shared among all users.

    CompanyName

    : Returns the company name associated with the application stored in the .

    Configuration

    : Returns the current .

    Cookies

    : Collection of cookies.

    Current

    : Returns the application component instance that an application can store and use later to restore the context when updating client widgets during an out-of-bound call using the method.

    Threads that are not started using don't have any knowledge of the current session and don't have a way to communicate with the client The property returns the instance of the class that is bound to the current session. It can be used just like any other component with the method or to restore the session for the current thread. The advantage of using instead of the instance of a control or a page is to avoid to keep a reference to a component that may be disposed by the application.

    CurrentCulture

    : Returns or sets the current for the session.

    Desktop

    : Returns or sets the current Desktop.

    EnableUnloadConfirmation

    : Returns or sets whether the browser will ask the user to confirm unloading the current page.

    This property attaches the window.onbeforeunload event. See https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload. It's not possible to determine whether the page is being unloaded because the user is trying to close the tab, close the browser, or is refreshing the page, or is taking any other action that may reload the page.

    ExecutablePath

    : Returns the path for the application's main assembly.

    FavIcon

    : Returns or sets the favicon to display in the browser.

    FavIconSource

    : Returns or sets the URL to the favicon to display in the browser.

    Hash

    : Returns or sets the hash part of the URL on the client.

    IsAuthenticated

    : Returns a value indicating whether the session has been authenticated.

    IsDisposed

    : Indicates that the current application instance, which corresponds to the session, has been terminated and disposed.

    IsExpired

    : Returns true when the current session has expired.

    IsSecure

    : Returns true if this session is running in secure mode (https:// and wss://)

    IsTerminated

    : Returns true when the current session has been terminated.

    IsWebSocket

    : Returns true if the current session is connected using WebSocket.

    LicenseInfo

    : Returns a dynamic object containing the currently loaded license information. Since 3.1.3

    These are the currently available fields (may change in future releases):

    • Valid: Whether the license is valid. Note that a license may be expired and valid if the product release date is within the license expiration date.

    • LicenseKey: License key loaded from web.config or assigned to .

    • ProductName: Full name of the licensed product.

    Retrieve the values either using a dynamic object or a property indexer:

    LicenseKey

    : Returns or sets the runtime server license key.

    Setting the programmatically has to be done before the application is loaded. The best place is the static constructor for the Program static class, or the static constructor of the main window (if defined in Default.js).

    MainPage

    : Returns or sets the current full page window.

    OpenForms

    : Returns a collection of open forms owned by the application.

    OpenPages

    : Returns a collection of open pages owned by the application.

    Platform

    : The name of the currently loaded platform.

    ProductName

    : Returns the product name associated with this application.

    ProductVersion

    : Returns the product version associated with this application stored either in or .

    QueryString

    : Returns the parameters used to launch the application.

    RightToLeft

    : Returns or sets whether all the controls in the applications should operate using the right-to-left mode.

    The value of this property is updated automatically when the current language changes if the value of "rightToLeft" in the application configuration file is set to "auto".

    RuntimeMode

    : Returns true when the application is running in not in design, debug or test mode.

    ServerName

    : Returns the server's host name, DNS alias, or IP address as it would appear in self-referencing URLs.

    ServerPort

    : Returns the port number to which the request was sent.

    ServerVariables

    : Returns the server variables.

    Services

    : Returns the implementation used by Wisej.NET to manage Dependency Injection across the application. Since 3.1

    Session

    : Provides a generic storage for session-based objects.

    SessionCount

    : Returns the total number of currently active sessions.

    SessionId

    : Returns the unique current session ID.

    ShowConsole

    : Shows or hides the debug console on the browser.

    Displays a simple HTMl only debug console. Works with any browser also when the developer tools are not available.

    ShowLoader

    : Returns or sets whether the browser is blocked by the Ajax loader.

    StartupPath

    : Returns the root path of the web application.

    StartupUri

    : Returns the URI used to start the application.

    StartupUrl

    : Returns the URL used to start the application.

    Theme

    : Returns or sets the current .

    You can create and modify a new custom theme using the class. The new theme can be based on an existing theme, can be empty, or can be initialized from a JSON string.

    You may also alter a global theme shared by all sessions.

    Title

    : Returns or sets the page title in the browser.

    Uri

    : Returns the current used either to launch or reload the application. It may be different from .

    Url

    : Returns the current URL used either to launch or reload the application. It may be different from .

    User

    : Returns the security information for the current request.

    UserAgent

    : Returns the raw user agent string of the client browser.

    UserHostAddress

    : Returns the IP host address of the remote client.

    UserHostName

    : Returns the DNS name of the remote client.

    UserIdentity

    : Returns the type for the current user.

    UserLanguages

    : Gets a sorted string array of client language preferences.

    Methods

    AddEventFilter(filter)

    Adds an event filter to monitor all the incoming events before they are routed to their respective component.

    Parameter
    Type
    Description

    AddTranslation(text, translation)

    Adds the text and corresponding translation to the default locale on the client.

    Parameter
    Type
    Description

    AlertAsync(message)

    Instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.

    Parameter
    Type
    Description

    Returns: . An awaitable that represents the asynchronous operation.

    Call(function, args)

    Executes the JavaScript function on the client.

    Parameter
    Type
    Description

    Call(function, callback, args)

    Executes the JavaScript function on the client and receives the return value (or null) in the callback method.

    Parameter
    Type
    Description

    CallAsync(function, args)

    Asynchronously executes the JavaScript function on the client and returns an awaitable with the result of the remote call.

    Parameter
    Type
    Description

    Returns: . An awaitable that represents the asynchronous operation.

    CancelFullScreen()

    Cancels the fullscreen mode.

    ConfirmAsync(message)

    Instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog. until the user dismisses the dialog.

    Parameter
    Type
    Description

    Returns: . An awaitable that represents the asynchronous operation.

    Dispose()

    Download(filePath, fileName, ondownload)

    Downloads the specified file on the client.

    Parameter
    Type
    Description

    Download(image, fileName, ondownload)

    Downloads the specified image to the client.

    Parameter
    Type
    Description

    Download(stream, fileName, ondownload)

    Downloads the bytes in the stream to the client.

    Parameter
    Type
    Description

    DownloadAndOpen(target, filePath, fileName, ondownload)

    Downloads the specified file on the client.

    Parameter
    Type
    Description

    DownloadAndOpen(target, image, fileName, ondownload)

    Downloads the specified image to the client.

    Parameter
    Type
    Description

    DownloadAndOpen(target, stream, fileName, ondownload)

    Downloads the bytes in the stream to the client.

    Parameter
    Type
    Description

    EndPolling()

    Stops the polling requests from the client.

    Eval(script)

    Executes the JavaScript script on the client.

    Parameter
    Type
    Description

    Eval(script, callback)

    Executes the JavaScript script on the client and receives the return value (or null) in the callback method.

    Parameter
    Type
    Description

    EvalAsync(script)

    Asynchronously executes the JavaScript script on the client and returns an awaitable with the result of the remote call.

    Parameter
    Type
    Description

    Returns: . An awaitable that represents the asynchronous operation.

    Exit()

    Terminates the application and the corresponding session.

    FindComponent(match)

    Find the first component that matches the conditions defined in the predicate function.

    Parameter
    Type
    Description

    Returns: . The first qualified by the match expression.

    This method lets an application find any live component in the current session.

    FindComponents(match)

    Finds all the components that match the conditions in the predicate function.

    Parameter
    Type
    Description

    Returns: . The list of instances qualified by the match expression.

    This method lets an application iterate through all the live components in the current session.

    GetInstance<T>(reference, builder)

    Returns a session-static instance of T . Since 3.2.7

    Parameter
    Type
    Description

    Returns: . The singleton instance of T associated with the current session.

    This utility method simplifies the management of session-static (or session singleton) instances. It should be used to convert traditional static variables to session-static instances when changing an application designed for single users to a multi-user system. The code below shows how to use this feature together with the to manage session-static instances and, at the same time, improve the speed of the code that relies on the singleton objects. Using the backing field allows the code that retrieves the session-static instance to quickly check the last instance and compare the session id and avoid accessing the dictionary for every access within the same request. Otherwise the code would have to always store a local variable in order to speed up multiple operations using the same static field.

    If the class a private constructor (to simulate a static class) or required initialization code or arguments, use the optional builder method:

    LoadAssembly(nameOrFile)

    Loads an assembly given the file name or path.

    Parameter
    Type
    Description

    Returns: . The loaded .

    This method loads the assembly and, if the assembly contains Wisej components that need embedded resources - like JavaScript classes or CSS styles - that are embedded in the assembly, notifies the client with the URL to load the additional resources dynamically.

    LoadComponent(nameOrFile, className)

    Creates an instance of the specified component from the assembly.

    Parameter
    Type
    Description

    Returns: . An instance of a Wisej component implementing the interface.

    LoadPackages(packages, callback)

    Parameter
    Type
    Description

    LoadPackagesAsync(packages)

    Parameter
    Type
    Description

    Returns: .

    LoadTheme(name, mixins)

    Changes the current theme.

    Parameter
    Type
    Description

    MapPath(path)

    Returns the full file path in relation to the application's project directory.

    Parameter
    Type
    Description

    Returns: . The full path relative to the current application's root directory.

    Navigate(url, target)

    Navigate to the specified URL.

    Parameter
    Type
    Description

    Navigate(url, target, onclose)

    Navigate to the specified URL in a new browser tab and receive an optional callback when the tab is closed.

    Parameter
    Type
    Description

    OpenWindow(url, target, windowFeatures, onclose)

    Opens the specified URL in a browser's popup window and receive an optional callback when the tab is closed.

    Parameter
    Type
    Description

    Play(type)

    Plays one of the built-in sounds

    Parameter
    Type
    Description

    Play(soundUrl)

    Plays a sound.

    Parameter
    Type
    Description

    Post(callback)

    Executes the callback method after all processing is completed and before updating the client.

    Parameter
    Type
    Description

    The Post() method is similar to the BeginInvoke() method used by desktop applications. It allows you to execute a block of code out of sync with the current execution flow.

    Print(control)

    Prints the specified control.

    Parameter
    Type
    Description

    The control is printed without the caption or the borders, if present.

    Print()

    Prints the entire browser window.

    PromptAsync(message, defaultValue)

    Instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.

    Parameter
    Type
    Description

    Returns: . An awaitable that represents the asynchronous operation.

    RefreshSessionId()

    Generates a new session id without losing the session. Since 3.5.2

    Use this method after a successful login to prevent potential session fixation attacks.

    Reload()

    Causes the application to reload on the browser.

    RemoveEventFilter(filter)

    Removes the filter from the list of registered event filters.

    Parameter
    Type
    Description

    RequestFullScreen()

    Requests the browser to enable fullscreen mode if supported.

    RunInContext(context, action)

    Executes the callback in context.

    Parameter
    Type
    Description

    SetInstance<T>(reference, instance)

    Replaces the object assigned to a session-static singleton. Since 3.5.2

    Parameter
    Type
    Description

    SetSessionTimeout(seconds)

    Sets the current session timeout in seconds.

    Parameter
    Type
    Description

    StartPolling(interval)

    Instructs the client to start polling the server for UI changes at the specified interval when a WebSocket connection is not available.

    Parameter
    Type
    Description

    Calling this method when is true has no effect. Use client side polling when you know that your code will start a background task that needs to update the client asynchronously (push updates) and your server or clients don't support WebSocket connections. Once the background tasks are completed call to reduce the incoming requests from the client.

    Throws:

    • The interval specified is less than 1.

    StartTask(action)

    Starts a new task within the current application context and returns immediately. See also .

    Parameter
    Type
    Description

    Returns: . An awaitable .

    The task runs in the background but it's still capable of updating the client asynchronously when working with WebSocket by calling the method to push the UI updates to the client browser. If you want to support background updates for clients or servers that can't use the WebSocket connection, you can either add a component to the parent container to force period requests to the server, or you can use the and methods.

    StartTask<T>(action)

    Starts a new task with a return value within the current application context and returns immediately. See also .

    Parameter
    Type
    Description

    Returns: .

    The task runs in the background but it's still capable of updating the client asynchronously when working with WebSocket by calling the method to push the UI updates to the client browser. The generics overload of allows the task to return a value. You can use this with the async/await pattern and asynchronously wait for the task to complete. If you want to support background updates for clients or servers that can't use the WebSocket connection, you can either add a component to the parent container to force period requests to the server, or you can use the and methods.

    Note that you don't have to specify the type in the angular brackets, the compiler will automatically detect the type from the return value of the asynchronous function.

    StartTimer(dueTime, period, callback)

    Starts a bound to the current session context.

    Parameter
    Type
    Description

    Returns: . An instance of .

    You must save a reference to the returned or the Garbage Collector will stop and dispose the timer. To alter the invocation period user Timer.Changer(), or stop the timer simply use Timer.Dispose(). See .

    Update(context, action)

    Executes the optional callback in context and pushes all the pending updates to the client when in WebSocket mode.

    Parameter
    Type
    Description

    Use this method when you need to update the client asynchronously from an out-of-bound thread (different thread, not originating from a client request). You can call this method at the end of the code that updates the UI:

    Or you can use the optional action function to enclose the code that updates the UI in a block and ensure that the client is updated when the code block exits:

    Events

    ActiveWindowChanged

    Fired when the active window changes.

    ApplicationExit

    Fired when the application is about to shut down.

    ApplicationRefresh

    Fired when the application is reloaded in the browser because the user hit refresh or changed the URL.

    ApplicationStart

    Fired when the application is started, after the Main method is called.

    BeforeInstallPrompt

    Fired when the browser fires the "beforeinstallprompt" event. Corresponds to .

    BeginRequest

    Fired at the beginning of every request.

    BrowserSizeChanged

    Fired when the user resizes the browser.

    BrowserTabActivated

    Fired when the user activates the browser tab.

    BrowserTabDeactivated

    Fired when the user deactivates the browser tab.

    CultureChanged

    Fired when the changes.

    EndRequest

    Fired at the end of every request.

    FocusedControlChanged

    Fired when the focused control changes.

    HashChanged

    Fired when the hash part of the URL changes on the client side.

    Idle

    Fired when the current thread has completed processing all the events and before the response is sent back to the client.

    ImpersonationBegin

    Fired right after , only when is set to true, to allow user code to take over the thread impersonation operations.

    Set e.Handled to true if your application takes care of impersonation; otherwise false to let the default implementation attempt to impersonate the user. This event is not related to a session. It is best to attach to this event from a static type initializer, otherwise each listener will be called for every thread, regardless of the session. The default implementation in Wisej.NET is supported only in .NET Framework and the Windows platform.

    ImpersonationEnd

    Fired at the end of every request when impersonation is enabled in the JSON configuration file.

    Set e.Handled to true if your application takes care of impersonation; otherwise false to let the default implementation attempt to impersonate the user. This event is not related to a session. It is best to attach to this event from a static type initializer, otherwise each listener will be called for every thread, regardless of the session. The default implementation in Wisej.NET is supported only in .NET Framework and the Windows platform.

    LicenseError

    Fired when a license error occurs.

    ResponsiveProfileChanged

    Fired when the active responsive profile is changed.

    RightToLeftChanged

    Fired when the value changes.

    SessionTimeout

    Fired when the session is about to time out.

    The default behavior built-in Wisej is to display a dialog asking the user to prolong the session. Set Handled to true to stop the default behavior.

    ThemeChanged

    Fired when the current theme is changed.

    ThreadException

    Fired when a thread exception is thrown.

    Implements

    Name
    Description

    DataObject

    Wisej.Web.DataObject

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Implements a basic data transfer mechanism.

    Constructors

    Read the application's system information. Use StartupPath, ProductName, ProductVersion, etc.

  • Listen to the application's global events. See SessionTimeout , BeginRequest, ApplicationStart, ApplicationExitApplicationRefresh, BrowserSizeChangedResponsiveProfileChanged, CultureChanged, and many more.

  • Retrieve browser related information. Use the Browser to read the client browser type, OS, version, capabilities, screen size, browser size, language, and state. The Browser object is updated automatically when the user resizes the browser or the page is reloaded.

  • Control the client browser. Start a Download, execute JavaScript functions or scriptlets using Call or Eval. Make the browser navigate to a different URL using Navigate or simply Reload the page.

  • Manage the main page or current desktop. MainPage lets you change the Page object that fills the browser and "navigate" from page to page. Desktop lets you change the active Desktop object on the client browser.

  • Manage all live components in the session. Through the Application class you can find, iterate, inspect all live components of any type. See OpenForms for all the currently created (visible or invisible) instances of Form. OpenPages returns all the created Page objects. FindComponent and FindComponents provide an easy way to find any component in the session or to iterate the list of components that match a custom expression.

  • Start background tasks in context. StartTask provides a powerful way to start a background task on the server that can keep interacting with the client browser while running independently.

  • Manage the application's theme. Use LoadTheme to load a Wisej theme into the application. Or use the Theme object to read all sorts of information from the current ClientTheme.

  • Terminate the application without waiting for the session to timeout. Use Exit to terminate the current session and free all the related memory.

  • CustomerName: Name of the registered customer that owns the license.
  • ExpirationDate: Expiration date for the product free updates.

  • filter

    IEventFilter

    An object that implements the IEventFilter interface to add to the filter list.

    text

    String

    The text to translate.

    translation

    String

    The translation override.

    message

    String

    A string you want to display in the alert dialog.

    function

    String

    The name of the function to execute.

    args

    Object[]

    The arguments to pass to the function.

    function

    String

    The name of the function to execute.

    callback

    Action<Object>

    Asynchronous callback method that receives the return value.

    args

    Object[]

    The arguments to pass to the function.

    function

    String

    The name of the function to execute.

    args

    Object[]

    The arguments to pass to the function.

    message

    String

    A string you want to display in the confirm dialog.

    filePath

    String

    The file to download.

    fileName

    String

    The name of the file to save on the client.

    ondownload

    Action<String>

    Optional callback invoked when fileName is downloaded.

    image

    Image

    The image to download.

    fileName

    String

    The name of the file to save on the client.

    ondownload

    Action<String>

    Optional callback invoked when fileName is downloaded.

    stream

    Stream

    The stream to send to the client.

    fileName

    String

    The file name the client will use to save the stream.

    ondownload

    Action<String>

    Optional callback invoked when fileName is downloaded.

    target

    String

    Specifies where to open the file. Leave empty or use "_self" to open in the current tab, _blank to open in a new tab.

    filePath

    String

    The file to download.

    fileName

    String

    The name of the file to save on the client.

    ondownload

    Action<String>

    target

    String

    Specifies where to open the file. Leave empty or use "_self" to open in the current tab, _blank to open in a new tab.

    image

    Image

    The image to download.

    fileName

    String

    The name of the file to save on the client.

    ondownload

    Action<String>

    target

    String

    Specifies where to open the file. Leave empty or use "_self" to open in the current tab, _blank to open in a new tab.

    stream

    Stream

    The stream to send to the client.

    fileName

    String

    The file name the client will use to save the stream.

    ondownload

    Action<String>

    script

    String

    The script to evaluate.

    script

    String

    The script to evaluate.

    callback

    Action<Object>

    Asynchronous callback method that receives the return value.

    script

    String

    The script to evaluate.

    match

    Predicate<IWisejComponent>

    A custom Predicate expression used to match the IWisejComponent to find.

    match

    Predicate<IWisejComponent>

    A custom Predicate expression used to match the list of IWisejComponent objects to find.

    T

    Type of the singleton object.

    reference

    SessionReference<T>

    Thread-static reference to the T singleton.

    builder

    Func<T>

    Optional method for the creation of an instance of T .

    nameOrFile

    String

    The file name or full path for the assembly to load.

    nameOrFile

    String

    The file name or full path for the assembly to load.

    className

    String

    packages

    IEnumerable<Package>

    callback

    Action<Boolean>

    packages

    IEnumerable<Package>

    name

    String

    Name of the theme resource. Use only the name without the path and without the extension.

    mixins

    String[]

    Optional list of theme mixins. If null, the default theme mixins are always applied.

    path

    String

    url

    String

    URL to navigate to.

    target

    String

    The target browser window: _self, _blank, etc.

    url

    String

    URL to navigate to.

    target

    String

    The target browser window, cannot be _self and cannot be empty.

    onclose

    Action

    Callback function invoked when the browser tab is closed. Can be null.

    url

    String

    URL to navigate to.

    target

    String

    The target browser window, cannot be _self and cannot be empty.

    windowFeatures

    String

    A string containing a comma-separated list of window features in the form name=value — or for boolean features, just name. These features include options such as the window's default size and position, whether or not to open a minimal popup window, and so forth.

    onclose

    Action

    type

    MessageBoxIcon

    One of MessageBoxIcon value that identifies the sound to play.

    soundUrl

    String

    A string representing either a sound file URL or a base64 data URL.

    callback

    Action

    Method to invoke after the request has completed but before sending the response to the server.

    control

    IWisejControl

    The control to print, can be a window, a page or a single control.

    message

    String

    A string of text to display to the user.

    defaultValue

    String

    An optoional string containing the default value displayed in the text input field.

    filter

    IEventFilter

    An object that implements the IEventFilter interface to remove from the filter list.

    context

    IWisejComponent

    The application context to update. It can be any Wisej component or the IWisejComponent returned by the property Current.

    action

    Action

    Function to execute in context. The code in the function can access all the static Application properties when executed from an out-of-bound thread.

    T

    Type of the session-static object.

    reference

    SessionReference<T>

    Thread-static reference to the T singleton.

    instance

    T

    New value to assign to the session-static storage.

    seconds

    Int32

    interval

    Int32

    Polling interval in milliseconds. The minimum is 1000ms.

    action

    Action

    Start method invoked by the new task when it starts up.

    T

    action

    Func<T>

    Start method invoked by the new task when it starts up.

    dueTime

    Int32

    The amount of time, in milliseconds, to delay before invoking the callback .

    period

    Int32

    The time interval between invocations, in milliseconds.

    callback

    Action

    A callback method to invoke at the specified intervals.

    context

    IWisejComponent

    The application context to update. It can be any Wisej component or the IWisejComponent returned by the property Current.

    action

    Action

    Function to execute in context. The code in the function can access all the static Application properties when executed from an out-of-bound thread.

    IWisejComponent

    All wisej components implement this interface.

    Session
    Dictionary
    Cookies
    ServerVariables
    ServerPort
    ServerName
    UserAgent
    Uri
    Url
    StartupUri
    StartupUrl
    Application
    docs.wisej
    ClientProfile
    ClientBrowser
    X509Certificate2
    String
    ClientCollection
    CommandManager
    CommandManager
    String
    RegistryKey
    String
    AssemblyCompanyAttribute
    Configuration
    Configuration
    CookieCollection
    IWisejComponent
    Update
    StartTask
    Current
    Application
    Update
    RunInContext
    Current
    CultureInfo
    CultureInfo
    Desktop
    Boolean
    String
    Image
    String
    String
    Boolean
    Boolean
    Boolean
    Boolean
    Boolean
    Boolean
    Object
    LicenseKey
    String
    LicenseKey
    Page
    FormCollection
    PageCollection
    ClientPlatform
    String
    String
    AssemblyInformationalVersionAttribute
    AssemblyFileVersionAttribute
    NameValueCollection
    Boolean
    Boolean
    String
    Int32
    NameValueCollection
    ServiceProvider
    ServiceProvider
    Object
    Int32
    String
    Boolean
    Boolean
    String
    Uri
    String
    ClientTheme
    ClientTheme
    ClientTheme
    String
    Uri
    Uri
    StartupUri
    String
    StartupUrl
    IPrincipal
    String
    String
    String
    WindowsIdentity
    WindowsIdentity
    String[]
    Task
    Task
    Task
    Task<Object>
    Task
    Task<Boolean>
    Task
    Task
    Task<Object>
    Task
    IWisejComponent
    IWisejComponent
    IList<IWisejComponent>
    IWisejComponent
    T
    ThreadStaticAttribute
    ThreadStaticAttribute
    Assembly
    Assembly
    IWisejComponent
    IWisejComponent
    Task<Boolean>
    String
    Task<String>
    Task
    IsWebSocket
    EndPolling
    ArgumentOutOfRangeException
    background-tasks
    Task
    Task
    Update
    Timer
    StartPolling
    EndPolling
    background-tasks
    Task<T>
    Update
    StartTask
    Timer
    StartPolling
    EndPolling
    Timer
    Timer
    Timer
    Timer
    system.threading
    EventHandler
    EventHandler
    EventHandler
    EventHandler
    EventHandler
    BeforeInstallPromptEvent
    RequestEventHandler
    EventHandler
    EventHandler
    EventHandler
    EventHandler
    CurrentCulture
    RequestEventHandler
    EventHandler
    HashChangedEventHandler
    EventHandler
    HandledEventHandler
    ThreadBegin
    Impersonate
    HandledEventHandler
    LicenseErrorEventHandler
    ResponsiveProfileChangedEventHandler
    EventHandler
    RightToLeft
    HandledEventHandler
    EventHandler
    ThreadExceptionEventHandler

    Optional callback invoked when fileName is downloaded.

    Optional callback invoked when fileName is downloaded.

    Optional callback invoked when fileName is downloaded.

    Callback function invoked when the browser popup window is closed. Can be null.

    DataObject()

    Initializes a new instance of the DataObject class.

    DataObject(data)

    Initializes a new instance of the DataObject class and adds the specified object to it.

    Name
    Type
    Description

    data

    The data to store.

    DataObject(format, data)

    Initializes a new instance of the DataObject class and adds the specified object in the specified format.

    Name
    Type
    Description

    format

    The format of the specified data. See for predefined formats.

    data

    The data to store.

    DataObject(format, data)

    Initializes a new instance of the DataObject class and adds the specified object in the specified format.

    Name
    Type
    Description

    format

    A representing the format of the data.

    data

    The data to store.

    Methods

    ContainsAudio()

    Indicates whether the data object contains data in the WaveAudio format.

    Returns: Boolean. true if the data object contains audio data; otherwise, false.

    ContainsFileDropList()

    Indicates whether the data object contains data that is in the FileDrop format or can be converted to that format.

    Returns: Boolean. true if the data object contains a file drop list; otherwise, false.

    ContainsImage()

    Indicates whether the data object contains data that is in the Bitmap format or can be converted to that format.

    Returns: Boolean. true if the data object contains image data; otherwise, false.

    ContainsText()

    Indicates whether the data object contains data in the UnicodeText format.

    Returns: Boolean. true if the data object contains text data; otherwise, false.

    ContainsText(format)

    Indicates whether the data object contains text data in the format indicated by the specified TextDataFormat value.

    Parameter
    Type
    Description

    format

    One of the values.

    Returns: Boolean. true if the data object contains text data in the specified format; otherwise, false.

    GetAudioStream()

    Retrieves an audio stream from the data object.

    Returns: Stream. A Stream containing audio data or null if the data object does not contain any data in the WaveAudio format.

    GetData(format)

    Returns the data associated with the specified class type format.

    Parameter
    Type
    Description

    format

    A representing the format of the data to retrieve.

    Returns: Object. The data associated with the specified format, or null.

    GetData(format)

    Returns the data associated with the specified data format.

    Parameter
    Type
    Description

    format

    The format of the data to retrieve. See for predefined formats.

    Returns: Object. The data associated with the specified format, or null.

    GetData(format, autoConvert)

    Returns the data associated with the specified data format, using an automated conversion parameter to determine whether to convert the data to the format.

    Parameter
    Type
    Description

    format

    The format of the data to retrieve. See for predefined formats.

    autoConvert

    true to the convert data to the specified format; otherwise, false.

    Returns: Object. The data associated with the specified format, or null.

    GetDataPresent(format)

    Determines whether data stored in this DataObject is associated with, or can be converted to, the specified format.

    Parameter
    Type
    Description

    format

    A representing the format to check for.

    Returns: Boolean. true if data stored in this DataObject is associated with, or can be converted to, the specified format; otherwise, false.

    GetDataPresent(format)

    Returns the data associated with the specified class type format.

    Parameter
    Type
    Description

    format

    A representing the format of the data to retrieve.

    Returns: Boolean. The data associated with the specified format, or null.

    GetDataPresent(format, autoConvert)

    Determines whether this DataObject contains data in the specified format or, optionally, contains data that can be converted to the specified format.

    Parameter
    Type
    Description

    format

    The format to check for. See for predefined formats.

    autoConvert

    true to determine whether data stored in this can be converted to the specified format; false to check whether the data is in the specified format.

    Returns: Boolean. true if the data is in, or can be converted to, the specified format; otherwise, false.

    GetFileDropList()

    Returns the list of file types from the data object.

    Returns: String[]. A string array containing the file types in the data object.

    GetFiles()

    Returns the HttpFileCollection of files uploaded by the client in a drag & drop operation.

    Returns: HttpFileCollection. A string array containing the file types in the data object.

    GetFormats()

    Returns a list of all formats that data stored in this DataObject is associated with or can be converted to.

    Returns: String[]. An array of type String, containing a list of all formats that are supported by the data stored in this object.

    GetFormats(autoConvert)

    Returns a list of all formats that data stored in this DataObject is associated with or can be converted to, using an automatic conversion parameter to determine whether to retrieve only native data formats or all formats that the data can be converted to.

    Parameter
    Type
    Description

    autoConvert

    true to retrieve all formats that data stored in this is associated with, or can be converted to; false to retrieve only native data formats.

    Returns: String[]. An array of type String, containing a list of all formats that are supported by the data stored in this object.

    GetImage()

    Retrieves an image from the data object.

    Returns: Image. An Image representing the image data in the data object or null if the data object does not contain any data that is in the Bitmap format or can be converted to that format.

    GetText()

    Retrieves text data from the data object in the UnicodeText format.

    Returns: String. The text data in the data object or Empty if the data object does not contain data in the UnicodeText format.

    GetText(format)

    Retrieves text data from the data object in the format indicated by the specified TextDataFormat value.

    Parameter
    Type
    Description

    format

    One of the values.

    Returns: String. The text data in the data object or Empty if the data object does not contain data in the specified format.

    SetAudio(audioBytes)

    Adds a Byte array to the data object in the WaveAudio format after converting it to a Stream.

    Parameter
    Type
    Description

    audioBytes

    A array containing the audio data.

    Throws:

    • ArgumentNullException audioBytes is null.

    SetAudio(audioStream)

    Adds a Stream to the data object in the WaveAudio format.

    Parameter
    Type
    Description

    audioStream

    A containing the audio data.

    Throws:

    • ArgumentNullException audioStream is null.

    SetData(data)

    Adds the specified object to the DataObject using the object type as the data format.

    Parameter
    Type
    Description

    data

    The data to store.

    SetData(format, data)

    Adds the specified object to the DataObject using the specified type as the format.

    Parameter
    Type
    Description

    format

    A representing the format associated with the data.

    data

    The data to store.

    SetData(format, data)

    Adds the specified object to the DataObject using the specified format.

    Parameter
    Type
    Description

    format

    The format associated with the data. See for predefined formats.

    data

    The data to store.

    SetData(format, autoConvert, data)

    Adds the specified object to the DataObject using the specified format and indicating whether the data can be converted to another format.

    Parameter
    Type
    Description

    format

    The format associated with the data. See for predefined formats.

    autoConvert

    true to allow the data to be converted to another format; otherwise, false.

    data

    The data to store.

    SetDownloadURL(url, fileName)

    Adds a url using DownloadURL format. The specified url is parsed to compose the DownloadURL as: "mime-type:file-name:url".

    Parameter
    Type
    Description

    url

    The url to the file to download.

    fileName

    The name of the file to download from the url.

    SetFileDropList(filePaths)

    Adds a collection of file names to the data object in the FileDrop format.

    Parameter
    Type
    Description

    filePaths

    A containing the file names.

    Throws:

    • ArgumentNullException filePaths is null.

    SetFileDropList(filePaths)

    Adds a collection of file names to the data object in the FileDrop format.

    Parameter
    Type
    Description

    filePaths

    A containing the file names.

    Throws:

    • ArgumentNullException filePaths is null.

    SetImage(image)

    Adds an Image to the data object in the Bitmap format.

    Parameter
    Type
    Description

    image

    The to add to the data object.

    Throws:

    • ArgumentNullException image is null.

    SetText(textData)

    Adds text data to the data object in the UnicodeText format.

    Parameter
    Type
    Description

    textData

    The text to add to the data object.

    Throws:

    • ArgumentNullException textData is null or Empty.

    SetText(textData, format)

    Adds text data to the data object in the format indicated by the specified TextDataFormat value.

    Parameter
    Type
    Description

    textData

    The text to add to the data object.

    format

    One of the values.

    Throws:

    • ArgumentNullException textData is null or Empty.

    Implements

    Name
    Description

    Provides a format-independent mechanism for transferring data.

    Public Class DataObject
        Inherits IDataObject
    public class DataObject : IDataObject

    Accordion.PanelCollection

    Wisej.Web.Accordion PanelCollection

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Contains a collection of AccordionPanel objects.

    public class PanelCollection : IList, ICollection, IEnumerable, IList<AccordionPanel>, ICollection<AccordionPanel>, IEnumerable<AccordionPanel>
    Public Class PanelCollection
        Inherits IList
        Implements ICollection, IEnumerable, IList(Of AccordionPanel), ICollection(Of AccordionPanel), IEnumerable(Of AccordionPanel)

    Properties

    Count

    : Returns the number of panels in the collection.

    Item(index)

    : Returns or sets a in the collection at the specified index.

    Throws:

    • index is less than zero or greater than the highest available index.

    • value is null.

    Item(name)

    : Returns the with the specified key from the collection.

    Methods

    Add(panel)

    Adds a to the collection.

    Parameter
    Type
    Description

    Throws:

    • The specified panel is null.

    Add(text)

    Creates a with the specified text, and adds it to the collection.

    Parameter
    Type
    Description

    Add(key, text)

    Creates a with the specified key and text and adds it to the collection.

    Parameter
    Type
    Description

    Add(key, text, imageIndex)

    Creates a with the specified key, text, and image, and adds it to the collection.

    Parameter
    Type
    Description

    Add(key, text, imageKey)

    Creates a with the specified key, text, and image, and adds it to the collection.

    Parameter
    Type
    Description

    AddRange(panels)

    Adds a set of panels to the collection.

    Parameter
    Type
    Description

    Throws:

    • The value of panels is null.

    Clear()

    Removes all the panels from the collection.

    Clear(dispose)

    Removes and disposes all panels from the collection.

    Parameter
    Type
    Description

    Contains(panel)

    Determines whether a specified is in the collection.

    Parameter
    Type
    Description

    Returns: . true if the specified is in the collection; otherwise, false.

    Throws:

    • The value of panel is null.

    ContainsKey(key)

    Determines whether the collection contains a with the specified key.

    Parameter
    Type
    Description

    Returns: . true to indicate a with the specified key was found in the collection; otherwise, false.

    CopyTo(array, index)

    Copies the panels in the collection to the specified array, starting at the specified index.

    Parameter
    Type
    Description

    Throws:

    • array is null.

    • array is less than zero.

    • array is multidimensional or the number of elements in the is greater than the available space from index to the end of array .

    IndexOf(panel)

    Returns the index of the in the collection.

    Parameter
    Type
    Description

    Returns: . The zero-based index of the panel; -1 if it cannot be found.

    Throws:

    • The value of panel is null.

    IndexOfKey(key)

    Returns the index of the first occurrence of the with the specified key.

    Parameter
    Type
    Description

    Returns: . The zero-based index of the first occurrence of a with the specified key, if found; otherwise, -1.

    Insert(index, panel)

    Inserts an existing into the collection at the specified index.

    Parameter
    Type
    Description

    Insert(index, text)

    Creates a new with the specified text and inserts it into the collection at the specified index.

    Parameter
    Type
    Description

    Insert(index, key, text)

    Creates a new with the specified key and text, and inserts it into the collection at the specified index.

    Parameter
    Type
    Description

    Insert(index, key, text, imageIndex)

    Creates a new with the specified key, text, and image, and inserts it into the collection at the specified index.

    Parameter
    Type
    Description

    Insert(index, key, text, imageKey)

    Creates a with the specified key, text, and image, and inserts it into the collection at the specified index.

    Parameter
    Type
    Description

    Remove(panel)

    Removes the from the collection.

    Parameter
    Type
    Description

    Throws:

    • The panel parameter is null.

    RemoveAt(index)

    Removes the at the specified index from the collection.

    Parameter
    Type
    Description

    RemoveByKey(key)

    Removes the with the specified key from the collection.

    Parameter
    Type
    Description
    
        Application.Session.myValue = 12;
        Application.Session["myValue"] = 12;
      
    
    var current = Application.Current;
    var thread = new Thread(() => {
      Application.Update(current, () => {
      
        // code here is running in context.
        
      });
    });
    
    
      string productName = Application.LicenseInfo.ProductName;
      string customerName = Application.LicenseInfo["CustomerName"];
    
    
    static class Program
    {
      static Program()
      {
        Application.LicenseKey = "...";
      }
    }
    
    
    // create a new custom theme cloned from the current theme.
    var myTheme = new ClientTheme("MyTheme", Application.Theme);
    
    // alter the buttonFace color.
    myTheme.Colors.buttonFace = "red";
    
    // update the current session using the new custom theme.
    Application.Theme = myTheme;
    
    
    
    // change the buttonFace color in the current theme.
    // if the theme is one of the global themes, i.e. it was loaded
    // using Application.LoadTheme(name), then the change is also global.
    Application.Theme.Colors.buttonFace = "red";
    
    // since the theme objects are all dynamic and use a special DynamicObject
    // class part of the Wisej Framework, you can also use a string indexer
    // to address any field.
    Application.Theme.Colors["buttonFace"] = "red";
    
    
    
      // Find the first component that is a Button with Text = "OK"
      var button = Application.FindComponent(c => c is Button && ((Button)c).Text == "OK");
    
    
      // List all text boxes that are read only in all forms.
      var list = Application.FindComponents(c => c is TextBox && ((TextBox)c).ReadOnly);
    
    
    
    public class MyStatics {
    
      // Thread-static singleton.
      [ThreadStatic] private static SessionReference<MyStatics> _instance;
      
      // Previously static fields (or properties).
      public int Counter;
    
      // Session singleton.
      public MyStatics Instance
        => Application.GetInstance(ref _instance);
        
      public static void DoSomething()
      {
        // was MyStatics.Counter++;
        MyStatics.Instance.Counter++;
      }
    }
    
    
    
    
    public class MyStatics {
    
      private MyStatics() { };
      
      // Thread-static singleton.
      [ThreadStatic] private static SessionReference<MyStatics> _instance;
      
      // Previously static fields (or properties).
      public int Counter;
    
      // Session singleton.
      public MyStatics Instance
        => Application.GetInstance(ref _instance, () => new MyStatics());
        
      public static void DoSomething()
      {
        // was MyStatics.Counter++;
        MyStatics.Instance.Counter++;
      }
    }
    
    
    
    void Test() {
    
      Application.Post(() => {
        this.listBox.Items.Add("1");
      });
      
      this.listBox.Items.Add("2");
      
      // The items will be added in this order: "2", "1".
    }
    
    
    
    
    // this has not effect when the client and server are connected using WebSocket.
    Application.StartPolling(1000);
    
    Application.StartTask(() => {
    
      for (int i = 0; i < 100; i++) {
        this.label1.Text = "Counting..." + i;
        Thread.Sleep(1000);
      }
      
      // this has not effect when the client and server are NOT connected using WebSocket.
      Application.Update(this);
    
      // this has not effect when the client and server are connected using WebSocket.
      Application.EndPolling();
    
    });
    
    
    Application.StartTask(() => {
    
      for (int i = 0; i < 100; i++) {
      
        this.label1.Text = "Counting..." + i;
        
        // just wait a bit or it's too fast.
        Thread.Sleep(1000);
        Application.Update(this);
      }
    });
    
    
    string text = await Application.StartTask(() => {
    
      string value = "";
      for (int i = 0; i < 100; i++) {
      
        value += i.ToString();
        
        // just wait a bit or it's too fast.
        Thread.Sleep(100);
      }
      return value;
    });
    
    this.label.Text = text;
    Application.Update(this);
    
    
    
    Application.StartTask(() => {
    
        for (int i = 0; i < 100; i++) {
        
          this.label1.Text = "Counting..." + i;
          
          // just wait a bit or it's too fast.
          Thread.Sleep(1000);
        }
        
        Application.Update(this);
    
    });
    
    
    Application.StartTask(() => {
    
        Application.Update(this, () => {
        
          for (int i = 0; i < 100; i++) {
        
            this.label1.Text = "Counting..." + i;
          
            // just wait a bit or it's too fast.
            Thread.Sleep(1000);
          }
        });
    
    });
    
    Object
    String
    DataFormats
    Object
    Type
    Type
    Object
    TextDataFormat
    TextDataFormat
    Type
    Type
    String
    DataFormats
    String
    DataFormats
    Boolean
    Type
    Type
    String
    Type
    String
    DataFormats
    Boolean
    DataObject
    Boolean
    DataObject
    TextDataFormat
    TextDataFormat
    Byte[]
    Byte
    Stream
    Stream
    Object
    Type
    Type
    Object
    String
    DataFormats
    Object
    String
    DataFormats
    Boolean
    Object
    String
    String
    StringCollection
    StringCollection
    String[]
    StringCollection
    Image
    Image
    String
    String
    TextDataFormat
    TextDataFormat
    IDataObject

    The zero-based index of the image to display on the .

    The key of the image to display on the .

    panel

    AccordionPanel

    The AccordionPanel to add.

    text

    String

    The text to display on the panel.

    key

    String

    The name of the AccordionPanel.

    text

    String

    The text to display on the title of AccordionPanel.

    key

    String

    The name of the AccordionPanel.

    text

    String

    The text to display on the AccordionPanel.

    imageIndex

    Int32

    The index of the image to display on the title of the AccordionPanel.

    key

    String

    The name of the AccordionPanel.

    text

    String

    The text to display on the AccordionPanel.

    imageKey

    String

    The key of the image to display on the title of the AccordionPanel.

    panels

    AccordionPanel[]

    An array of type AccordionPanel that contains the panels to add.

    dispose

    Boolean

    Indicates whether to dispose the AccordionPanel panels removed from the collection.

    panel

    AccordionPanel

    The AccordionPanel to locate in the collection.

    key

    String

    The name of the AccordionPanel to search for.

    array

    AccordionPanel[]

    The one-dimensional array that is the destination of the AccordionPanel panels copied from the collection. The array must have zero-based indexing.

    index

    Int32

    The zero-based index in the array at which copying begins.

    panel

    AccordionPanel

    The AccordionPanel to locate in the collection.

    key

    String

    The name of the AccordionPanel to find in the collection.

    index

    Int32

    The zero-based index location where the AccordionPanel is inserted.

    panel

    AccordionPanel

    The AccordionPanel to insert in the collection.

    index

    Int32

    The zero-based index location where the AccordionPanel is inserted.

    text

    String

    The text to display in the AccordionPanel.

    index

    Int32

    The zero-based index location where the AccordionPanel is inserted.

    key

    String

    The name of the AccordionPanel.

    text

    String

    The text to display on the AccordionPanel.

    index

    Int32

    The zero-based index location where the AccordionPanel is inserted

    key

    String

    The name of the AccordionPanel.

    text

    String

    The text to display on the AccordionPanel.

    index

    Int32

    The zero-based index location where the AccordionPanel is inserted.

    key

    String

    The name of the AccordionPanel.

    text

    String

    The text to display on the AccordionPanel.

    panel

    AccordionPanel

    The AccordionPanel to remove.

    index

    Int32

    The zero-based index of the AccordionPanel to remove.

    key

    String

    The name of the AccordionPanel to remove.

    Int32
    AccordionPanel
    AccordionPanel
    ArgumentOutOfRangeException
    ArgumentNullException
    AccordionPanel
    AccordionPanel
    AccordionPanel
    ArgumentNullException
    AccordionPanel
    AccordionPanel
    AccordionPanel
    AccordionPanel
    AccordionPanel
    ArgumentNullException
    AccordionPanel
    AccordionPanel
    AccordionPanel
    Boolean
    AccordionPanel
    ArgumentNullException
    AccordionPanel
    Boolean
    AccordionPanel
    AccordionPanel
    ArgumentNullException
    ArgumentOutOfRangeException
    ArgumentException
    Panels
    AccordionPanel
    Int32
    ArgumentNullException
    AccordionPanel
    Int32
    AccordionPanel
    AccordionPanel
    AccordionPanel
    AccordionPanel
    AccordionPanel
    AccordionPanel
    AccordionPanel
    ArgumentNullException
    AccordionPanel
    AccordionPanel

    imageIndex

    imageKey

    Int32
    AccordionPanel
    String
    AccordionPanel

    Control

    Wisej.Web.Control

    Namespace: Wisej.Web

    Assembly: Wisej.Framework (3.5.0.0)

    Base class for all Wisej controls.

    public class Control : IWisejControl, IWisejComponent, IBindableComponent, IWisejSerializable, IHasPropertyStore, IHasResponsiveProfiles, IDropTarget
    Public Class Control
        Implements IWisejControl, IWisejComponent, IBindableComponent, IWisejSerializable, IHasPropertyStore, IHasResponsiveProfiles, IDropTarget

    Constructors

    Control()

    Initializes a new instance of the class.

    Properties

    AccessibleDescription

    : Returns or sets the description that will be reported to accessibility client applications. It is assigned to the "alt" attribute of the browser element. (Default: null)

    AccessibleName

    : Returns or sets the name of the control for use by accessibility client applications. It is assigned to the "name" attribute of the browser element. (Default: null)

    AccessibleRole

    : Returns or sets the accessible role of the control that will be reported to accessibility client applications. It is assigned to the "role" attribute of the browser element. (Default: Default)

    AllowDrag

    : Returns or sets whether the control can initiate a drag-drop operation. (Default: False)

    AllowDrop

    : Returns or sets whether the control can accept data that the user drags onto it. (Default: False)

    Anchor

    : Returns or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. (Default: Top, Left)

    Anonymous

    : Returns or sets whether the control receives pointer events. Anonymous controls let pointer events bubble to their parents. (Default: False)

    AppearanceKey

    : Sets the appearance key for the theme engine. (Default: null)

    BackColor

    : Returns or sets the background color for the control.

    BackgroundImage

    : Returns or sets the background image displayed in the control. (Default: null)

    BackgroundImageLayout

    : Returns or sets the background image layout as defined in the enumeration. (Default: None)

    BackgroundImageSource

    : Returns or sets the background image displayed in the control. (Default: null)

    BecomingActiveControl

    : Returns a flag indicating that the control is becoming the active control.

    BindingContext

    : Returns or sets the for the control.

    Bottom

    : Returns the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.

    Bounds

    : Returns or sets the size and location of the control including its non-client area, in pixels and relative to the parent control.

    CanExecute

    : Determines whether the control can execute a command.

    CanFocus

    : Returns whether the control can receive focus.

    CanSelect

    : Returns whether the control can be selected.

    Capture

    : Returns or sets whether the control has captured the mouse.

    CausesValidation

    : Returns or sets whether the control causes validation to be performed on controls that require to be validated when this control receives focus. (Default: True)

    ClientEvents

    : Returns a collection of client events and JavaScript listeners. You may attach multiple listeners to same event.

    You can use this collection at design time or in code or through the listener methods:

    ClientRectangle

    : Returns the client rectangle of the control.

    ClientSize

    : Returns or sets the height and width of the client area.

    ContainsFocus

    : Indicates whether the control, or one of its child controls, has the input focus.

    ContextMenu

    : Returns or sets the shortcut menu associated with the control. (Default: null)

    Controls

    : Returns the collection of controls contained within the control.

    Created

    : Returns a value indicating whether the control has been created.

    CssClass

    : Returns or sets additional CSS class names to add to the widget.

    Use this property to add or remove custom CSS classes that you may add to your application as standard css files or through the extender. You can assign multiple class names separated by a space and you can manage this property using the related methods:

    CssStyle

    : Returns or sets the custom CSS styles to add to the widget.

    You can use any CSS style string.

    Cursor

    : Returns or sets the cursor that is displayed when the mouse pointer is over the control. (Default: null)

    DataBindings

    : Returns the data bindings for the control.

    DefaultBackColor

    : Returns the default background color of the control.

    DefaultFont

    : Returns the default font of the control.

    DefaultForeColor

    : Returns the default background color of the control.

    DisplayRectangle

    : Returns the rectangle that represents the virtual display area of the control.

    Disposing

    : Returns whether the control is in the process of disposing itself and child controls.

    Dock

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

    Enabled

    : Returns or sets whether the control can respond to user interaction.

    EnableNativeContextMenu

    : Enables or disables the browser's context menu.

    Focusable

    : Returns or sets whether the control can gain the focus. (Default: True)

    Focused

    : Returns a value indicating whether the control has input focus.

    Font

    : Gets or sets the font of the text displayed by the control.

    ForeColor

    : Returns or sets the text color of the control.

    Handle

    : Returns the unique server-side id (handle) for this component.

    HasChildren

    : Returns whether the control contains any child control.

    HasDataBindings

    : Returns whether the control specifies data bindings.

    HasResponsiveProfiles

    : Check if the control defines any responsive profile without forcing the creation of the collection.

    HasUserData

    : Checks if the dynamic object was created and has any value.

    Height

    : Returns or sets the height of the control.

    InitScript

    : Returns or sets an initialization script to execute when the widget is created (or reloaded) in the browser.

    Use this property to add custom initialization JavaScript that is always executed when the client widget is created. The context (this) of the script is the instance of the widget. You can use the entire qooxdoo and wisej.js api. See and .

    You may also use the init script to attach events to the widget or to its internal children. Event handlers can also be attached using the collection and the client events methods:

    InvokeRequired

    : Returns true when this control belogs to a session different than the currently executing thread.

    IsDisposed

    : Returns whether the control has been disposed.

    IsHandleCreated

    : Returns if the control has a server-side component id (handle) associated with it.

    IsMirrored

    : Returns whether the control is mirrored.

    LayoutEngine

    : Returns the control's layout engine.

    Left

    : Returns or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.

    Location

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

    Margin

    : Returns or sets the space between controls.

    MaximumSize

    : Returns or sets the maximum size for the control.

    MinimumSize

    : Returns or sets the minimum size for the control.

    ModifierKeys

    : Returns a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.

    MouseButtons

    : Returns a value indicating which of the mouse buttons is in a pressed state.

    MousePosition

    : Returns the position of the mouse cursor in screen coordinates.

    Movable

    : Returns or sets whether the control can be moved by dragging.

    Name

    : Gets or sets the name of the control.

    Padding

    : Returns or sets padding within the control.

    Parent

    : Returns or sets the parent container of the control.

    PreferredSize

    : Returns the preferred size in which the control can fit.

    ResizableEdges

    : Returns or sets the edges of the control that can be dragged to resize the control.

    ResponsiveProfiles

    : Returns the collection of responsive properties that have been set for this control.

    Right

    : Return the distance, in pixels, between the right edge of the control and the left edge of its container's client area.

    RightToLeft

    : Returns or sets whether the control's elements are aligned right-to-left to support RTL languages.

    When set to , the control inherits the value of this property from its parent. However, when the control is a top-level control (i.e. Window, Page, Desktop), and the value is set to , the right-to-left mode is automatically retrieved from the current language.

    The behavior of this property is configurable in Default.json setting the "rightToLeft" property to "true", "false", or "auto". The default is "auto", causing the value to be retrieved from the current language.

    Selectable

    : Returns or sets whether the text in the control can be selected in the browser by the user by dragging the pointer. Since 2.5.22 (Default: False)

    Not to be confused with , which corresponds to the property. When is set to true, the text of the control (i.e. a label or a button) can be highlighted in the browser and copied to the clipboard. It will also make the widget "focusable" but only in the browser.

    ShowLoader

    : Returns or sets whether the control is blocked by the ajax loader. (Default: False)

    Size

    : Returns or sets the height and width of the control.

    States

    : Returns or sets additional theme states to the client widget.

    Use this property to manage additional custom states that you may want to add to a widget. The state will update the visualization of the widget using the styles and properties set in the current theme and loaded theme mixins. You can also force the usage of built-in states. However, this property will not return the current states of the widget as updated by the client browser. It only returns the states set by the application.

    In addition to setting this property directly, you can also manage it using the related methods:

    Since 3.5.5 Add a + after the name of the state to propagate the state to the child controls of the widget. See also .

    TabIndex

    : Returns or sets the tab order of the control within its container.

    TabStop

    : Returns or sets whether the user can give the focus to this control using the TAB key and the property is set to true. (Default: True)

    Tag

    : Returns or sets the object that contains data about the control. (Default: null)

    Text

    : Returns or sets the text associated with this control. (Default: "")

    When AllowHtml is set to true, the text can contain HTML content. If the text contains new lines (CRLF) but doesn't contain HTML elements (at least one "<") all CRLF are automatically substituted with "<BR/>".

    ToolTipText

    : Returns or sets the tooltip text to show for this control. (Default: "")

    When using property you can only set the ToolTip text and cannot change the default ToolTip icon set in the theme. To change the ToolTip icon you can either create a custom theme, or a theme mixin, or use the extender and the property added by the extender. You can change the default , , , , or enable HTML in by using a extender also without setting the property added by the extender.

    Top

    : Returns or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area.

    TopLevelControl

    : Returns the parent control that is not parented by another . Typically, this is the outermost that the control is contained in.

    UserData

    : Returns a dynamic object that can be used to store custom data in relation to this control.

    UseWaitCursor

    : Returns or sets whether to use the wait cursor for the current control and all child controls. (Default: False)

    ValidationCancelled

    : Returns a flag indicating that the validation has been canceled.

    Visible

    : Returns or sets whether the control and all its child controls are displayed.

    WheelDelta

    : Returns a value indicating the wheel delta from the last wheel event.

    Width

    : Returns or sets the width of the control.

    Methods

    AddClientEventListener(name, script)

    Adds a new listener script to the event name to the client widget.

    Parameter
    Type
    Description

    Returns: . An integer id that you can use to remove the listener from the event using or to retrieve the listener script code using .

    The script will execute in the browser when the event name occurs. You can attach multiple listeners to the same event.

    AddCssClass(name)

    Adds the CSS class name to the widget element. If the class already exists in the it's not added.

    Parameter
    Type
    Description

    Returns: . The new value of the property.

    AddState(state)

    Adds the specified theme state to the widget.

    Parameter
    Type
    Description

    Returns: . The new list of states stored in the property.

    You can also assign a new array of states to the property.

    AddState(state, forward)

    Adds the specified theme state to the widget and optionally propagates it to the child components when forward is true. Since 3.5.5

    Parameter
    Type
    Description

    Returns: . The new list of states stored in the property.

    You can also assign a new array of states to the property.

    BeginInvoke(method)

    Executes the specified delegate asynchronously, in the context of the session that owns the control.

    Parameter
    Type
    Description

    Returns: . An that represents the result of the operation.

    BeginInvoke(method, args)

    Executes the specified delegate asynchronously, in the context of the session that owns the control, with the specified list of arguments.

    Parameter
    Type
    Description

    Returns: . An that represents the result of the asynchronous call.

    BringToFront()

    Brings the control to the front of the z-order.

    Returns: .

    Call(function, args)

    Runs the JavaScript function within the component's context in the browser.

    Parameter
    Type
    Description

    Returns: . this control

    Call(function, callback, args)

    Runs the JavaScript function within the component's context in the browser and returns the value to the callback method.

    Parameter
    Type
    Description

    Returns: . this control

    CallAsync(function, args)

    Asynchronously runs the JavaScript function within the component's context in the browser and returns an awaitable containing the value returned by the remote call.

    Parameter
    Type
    Description

    Returns: . An awaitable that represents the asynchronous operation.

    CenterToParent()

    Centers the position of the control within the bounds of the parent.

    Returns: . this control

    CenterToParent(horizontal, vertical)

    Centers the position of the control within the bounds of the parent either horizontally, vertically or both.

    Parameter
    Type
    Description

    Returns: . this control

    Contains(control)

    Indicates whether the specified control is a child of this control.

    Parameter
    Type
    Description

    Returns: . true if the specified control is a child of the control; otherwise, false.

    CreateControl()

    Creates and register this control and all its children.

    Returns: .

    DoDragDrop(data, allowedEffects)

    Begins a drag-and-drop operation.

    Parameter
    Type
    Description

    Returns: . A value from the enumeration that represents the final effect that was performed during the drag-and-drop operation.

    DoDragDrop(data, allowedEffects, imageSource)

    Begins a drag-and-drop operation.

    Parameter
    Type
    Description

    Returns: . A value from the enumeration that represents the final effect that was performed during the drag-and-drop operation.

    DoDragDrop(data, allowedEffects, imageSource, imageSize)

    Begins a drag-and-drop operation.

    Parameter
    Type
    Description

    Returns: . A value from the enumeration that represents the final effect that was performed during the drag-and-drop operation.

    DoDragDrop(data, allowedEffects, image)

    Begins a drag-and-drop operation.

    Parameter
    Type
    Description

    Returns: . A value from the enumeration that represents the final effect that was performed during the drag-and-drop operation.

    DoDragDrop(data, allowedEffects, image, imageSize)

    Begins a drag-and-drop operation.

    Parameter
    Type
    Description

    Returns: . A value from the enumeration that represents the final effect that was performed during the drag-and-drop operation.

    EndInvoke(asyncResult)

    Retrieves the return value from the asynchronous operation represented by asyncResult .

    Parameter
    Type
    Description

    Returns: . The return value from the asynchronous operation.

    Eval(javaScript)

    Runs the javaScript code within the component's context in the browser.

    Parameter
    Type
    Description

    Returns: . this control

    Eval(javaScript, callback)

    Runs the javaScript code within the component's context in the browser and returns the value to the callback method.

    Parameter
    Type
    Description

    Returns: . this control

    EvalAsync(javaScript)

    Asynchronously runs the javaScript code within the component's context in the browser and returns an awaitable that contains the value returned by the remote call.

    Parameter
    Type
    Description

    Returns: . An awaitable that represents the asynchronous operation.

    FindForm()

    Retrieves the that contains the control.

    Returns: .

    FindPage()

    Retrieves the that contains the control.

    Returns: .

    Focus()

    Sets input focus to the control.

    Returns: . true if the input focus request was successful; otherwise, false.

    GetChildAtPoint(pt, skipValue)

    Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.

    Parameter
    Type
    Description

    Returns: . The child at the specified coordinates.this control

    GetChildAtPoint(pt)

    Retrieves the child control that is located at the specified coordinates.

    Parameter
    Type
    Description

    Returns: . A that represents the control that is located at the specified point.

    GetClientEventListener(id)

    Returns the script associated to the listener identified by id .

    Parameter
    Type
    Description

    Returns: . JavaScript associated with the listener.

    GetClientEventListener(name)

    Returns the scripts for all the listeners attached to the event name .

    Parameter
    Type
    Description

    Returns: . String array containing the scripts for the listeners attached to the event.

    GetContainerControl()

    Returns the next up the control's chain of parents.

    Returns: . The parent .

    GetNextControl(control, forward)

    Retrieves the next control forward or back in the tab order of child controls.

    Parameter
    Type
    Description

    Returns: . The next in the tab order.

    GetStyle(flag)

    Retrieves the value of the specified control style bit for the control.

    Parameter
    Type
    Description

    Returns: . true if the specified control style bit is set to true; otherwise, false.

    HasClientEventListener(name)

    Checks whether the specified event name has any listener attached.

    Parameter
    Type
    Description

    Returns: . True if the event name has any listener attached.

    HasCssClass(name)

    Returns true if the property contains the specified class name .

    Parameter
    Type
    Description

    Returns: . True of the css class name is already included in .

    HasState(state)

    Checks whether the specified theme state is present in the property.

    Parameter
    Type
    Description

    Returns: . True if the widget already has the state .

    To check only if a propagated state is present, use HasState("state+");

    Hide()

    Conceals the control from the user.

    Returns: .

    Invalidate()

    Causes the control to update the client side widget. When in design mode, causes the rendered control to update its entire surface in the designer.

    Invalidate(invalidateChildren)

    Causes the control to update the client side widget. When in design mode, causes the rendered control to update its entire surface in the designer.

    Parameter
    Type
    Description

    Invoke(method)

    Executes the specified delegate, in the context of the session that owns the control.

    Parameter
    Type
    Description

    Returns: . The return value from the delegate being invoked, or null if the delegate has no return value.

    Invoke(method, args)

    Executes the specified delegate, in the context of the session that owns the control, with the specified list of arguments.

    Parameter
    Type
    Description

    Returns: . An that contains the return value from the delegate being invoked, or null if the delegate has no return value.

    IsMnemonic(charCode, text)

    Determines whether the specified character is the mnemonic character.

    Parameter
    Type
    Description

    Returns: . true if the charCode character is the mnemonic character; otherwise, false.

    LayoutChildren(dock, spacing, useMargins, hAlign, vAlign)

    Arranges all the child using the specified dock style, spaced by spacing pixels.

    Parameter
    Type
    Description

    LayoutChildren(dock, viewArea, spacing, useMargins, hAlign, vAlign)

    Arranges all the child using the specified dock style, spaced by spacing pixels.

    Parameter
    Type
    Description

    LayoutChildren(controls, dock, spacing, useMargins, hAlign, vAlign)

    Arranges all the child using the specified dock style, spaced by spacing pixels.

    Parameter
    Type
    Description

    LayoutChildren(controls, dock, viewArea, spacing, useMargins, hAlign, vAlign)

    Arranges all the child using the specified dock style, spaced by spacing pixels.

    Parameter
    Type
    Description

    LayoutChildren(direction, spacing, useMargins, hAlign, vAlign)

    Arranges all the child in the specified direction , spaced by spacing pixels.

    Parameter
    Type
    Description

    LayoutChildren(direction, viewArea, spacing, useMargins, hAlign, vAlign)

    Arranges all the child in the specified direction , spaced by spacing pixels, and constrained within the specified viewArea .

    Parameter
    Type
    Description

    LayoutChildren(controls, direction, spacing, useMargins, hAlign, vAlign)

    Arranges the specified child controls in the specified direction , spaced by spacing pixels.

    Parameter
    Type
    Description

    Throws:

    • One of the controls is not a child of this control.

    LayoutChildren(controls, direction, viewArea, spacing, useMargins, hAlign, vAlign)

    Arranges the specified child controls in the specified direction , spaced by spacing pixels, and constrained within the specified viewArea .

    Parameter
    Type
    Description

    Throws:

    • One of the controls is not a child of this control.

    PerformLayout()

    Forces the control to apply layout logic to all its child controls.

    PerformLayout(affectedControl, affectedProperty)

    Forces the control to apply layout logic to all its child controls.

    Parameter
    Type
    Description

    PointToClient(point)

    Computes the location of the specified screen point into client coordinates.

    Parameter
    Type
    Description

    Returns: . A that represents the converted , point , in client coordinates.

    PointToScreen(point)

    Computes the location of the specified client point into screen coordinates.

    Parameter
    Type
    Description

    Returns: . A that represents the converted , point , in screen coordinates.

    RectangleToClient(rect)

    Computes the size and location of the specified screen rectangle in client coordinates.

    Parameter
    Type
    Description

    Returns: . A that represents the converted , rect , in client coordinates.

    RectangleToScreen(rect)

    Computes the size and location of the specified client rectangle in screen coordinates.

    Parameter
    Type
    Description

    Returns: . A that represents the converted , rect , in screen coordinates.

    Refresh()

    Forces the control to update corresponding client widget. When in DesignMode it forces a full redraw of the designer surface for this control, including the non-client areas such as the caption of forms or panels.

    Refresh(refreshChildren)

    Forces the control to update the corresponding client widget. When in DesignMode it forces a full redraw of the designer surface for this control and optionally of its children, including the non-client areas such as the caption of forms or panels.

    Parameter
    Type
    Description

    RemoveClientEventListener(id)

    Detaches and removes the listener identified by id .

    Parameter
    Type
    Description

    Returns: . True if the id specified a valid lister and it was removed; otherwise false if id is invalid.

    RemoveClientEventListener(name)

    Removes all the listeners attached to the event name .

    Parameter
    Type
    Description

    Returns: . True if the event name has any listener that was removed.

    RemoveCssClass(name)

    Removes the specified css class name from the control's property.

    Parameter
    Type
    Description

    Returns: . The new value of the property.

    RemoveState(state)

    Removes the specified theme state from the widget.

    Parameter
    Type
    Description

    Returns: . The new list of states stored in the property.

    You can also assign a new array of states to the property.

    RemoveState(state, forward)

    Removes the specified theme state from the widget. Since 3.5.5

    Parameter
    Type
    Description

    Returns: . The new list of states stored in the property.

    You can also assign a new array of states to the property.

    ResetBindings()

    Removes all the data bindings from the control.

    Returns: .

    ResumeLayout()

    Resumes layout logic.

    ResumeLayout(performLayout)

    Resumes layout logic, optionally forcing an immediate layout of all pending layout requests.

    Parameter
    Type
    Description

    ScrollControlIntoView(alignX, alignY)

    Scrolls the control into view in the container using the specified alignX and alignY preferences.

    Parameter
    Type
    Description

    Returns: . this control

    ScrollControlIntoView()

    Scrolls the child control into view.

    Returns: . this control

    Select()

    Activates, including setting the focus, a control.

    Returns: .

    SelectNextControl(control, forward, tabStopOnly, nested, wrap)

    Activates the next control in the list according to the specified selection rules.

    Parameter
    Type
    Description

    Returns: . true if a control was activated; otherwise, false.

    SendToBack()

    Sends the control to the back of the z-order.

    Returns: .

    SetBounds(x, y, width, height)

    Sets the bounds of the control to the specified location and size.

    Parameter
    Type
    Description

    Returns: .

    SetBounds(x, y, width, height, specified)

    Sets the specified bounds of the control to the specified location and size.

    Parameter
    Type
    Description

    Returns: . this control

    Show()

    Displays the control to the user.

    Returns: .

    SuspendLayout()

    Suspends the layout logic for the control.

    Update()

    Causes the control to update the corresponding client side widget. When in design mode, causes the rendered control to update its entire surface in the designer.

    ValidateChildren()

    Validates all selectable child controls in the container, including descendants. This is equivalent to calling ValidateChildren(ValidationConstraints.Selectable). See for details of exactly which child controls will be validated.

    Returns: . true if all of the children validated successfully; otherwise, false. If called from the or 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

    Returns: . true if all of the children validated successfully; otherwise, false. If called from the or event handlers, this method will always return false.

    Events

    Appear

    Fired after the control has been fully rendered on the client.

    This is a "lazy" event. It fires only when there is an handler attached to it, otherwise the companion On{Name} protected method is not invoked. It's enough to attach to either one of or to enable both events.

    AutoSizeChanged

    Fired when the property value changes.

    BackColorChanged

    Fired when the value of the property changes.

    BackgroundImageChanged

    Fired when the value of the property changes.

    BackgroundImageLayoutChanged

    Fired when the property changes.

    BecomingActiveControlChanged

    Fired when the value of the property changes.

    BindingContextChanged

    Occurs when the value of the property changes.

    CausesValidationChanged

    Fired when the value of the property changes.

    Click

    Fired when the control is clicked.

    ClientSizeChanged

    Fired when the property value changes.

    ContextMenuChanged

    Fired when the value of the property changes.

    ControlAdded

    Fired when a new control is added to the .

    ControlCreated

    Fired when a control is made visible the first time, fully created and sent to the client.

    ControlRemoved

    Fired when a control is removed from the .

    CursorChanged

    Fired when the value of the property changes.

    Disappear

    Fired after the control is no longer visible on the client.

    This is a "lazy" event. It fires only when there is an handler attached to it, otherwise the companion On{Name} protected method is not invoked. It's enough to attach to either one of or to enable both events.

    Disposed

    Fired when the component is disposed.

    DockChanged

    Fired when the value of the property changes.

    DoubleClick

    Fired when the control is double-clicked.

    DragDrop

    Fired when a drag-and-drop operation is completed.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    DragEnd

    Fired when a drag-drop operation is terminated either by a drop or canceled.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    DragEnter

    Fired when an object is dragged into the control's bounds.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    DragLeave

    Fired when an object is dragged out of the control's bounds.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    DragOver

    Fired when an object is dragged over the control's bounds.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    DragStart

    Fired when a drag-drop operation is started by the user.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    EnabledChanged

    Fired when the property value has changed.

    EndMove

    Fired when a control is and the user ends the move operation.

    This event fires only when is true and the user moves the widget on the client. It doesn't fire when the property changes.

    EndResize

    Fired when a control has and the user ends the resize operation.

    This event fires only when the has a value different than and the user resizes the widget on the client. It doesn't fire when the of the control changes.

    Enter

    Fired when the control gains the input focus.

    FontChanged

    Fired when the property value changes.

    ForeColorChanged

    Fired when the property value changes.

    GotFocus

    Fired when the control gains the focus.

    HelpRequested

    Fired when the user requests help for a control by pressing F1.

    ImeModeChanged

    Fired when the ImeMode property has changed.

    KeyDown

    Fired when a key is pressed while the control has focus.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    KeyPress

    Fired when a key is pressed while the control has focus.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    KeyUp

    Fired when a key is released while the control has focus.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    Layout

    Fired when a control should reposition its child controls.

    Leave

    Fired when the control loses the input focus.

    LocationChanged

    Fired when the property value has changed.

    LongTap

    Fired when a pointer holds on the screen.

    LostFocus

    Fired when the control loses focus.

    MarginChanged

    Fired when the control's margin changes.

    MouseCaptureChanged

    Fired when the control loses mouse capture.

    MouseClick

    Fired when the control is clicked by the mouse.

    MouseDoubleClick

    Fired when the control is double clicked by the mouse.

    MouseDown

    Fired when the mouse pointer is over the control and a mouse button is pressed.

    MouseEnter

    Fired when the mouse pointer enters the control.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    MouseHover

    Fired when the mouse pointer rests on the control.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    MouseLeave

    Fired when the mouse pointer leaves the control.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    MouseMove

    Fired when the mouse pointer is moved over the control.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    MouseUp

    Fired when the mouse pointer is over the control and a mouse button is released.

    MouseWheel

    Fired when the mouse wheel moves while the control has focus.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    PaddingChanged

    Fired when the control's padding changes.

    Paint

    Fired when a UserPaint control needs to redraw itself.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    ParentChanged

    Fired when the property value changes.

    Pinch

    Fired when two finger moved towards or away from each other. It contains the scaling factor of the pinch.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    PreviewKeyDown

    Fired before the event when a key is pressed while focus is on this control.

    QueryContinueDrag

    Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    Resize

    Fired when the control is resized.

    ResponsiveProfileChanged

    Fired when the active responsive profile is changed.

    RightToLeftChanged

    Fired when the property value changes.

    Rotate

    Fired when two finger moved around a single point. It contains the angle of the rotation.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    SizeChanged

    Fired when the property value changes.

    StartMove

    Fired when a control is and the user begins the move operation.

    This event fires only when is true and the user begins moving the widget on the client.

    StartResize

    Fired when a control has and the user begins the resize operation.

    This event fires only when the has a value different than and the user begins resizing the widget on the client.

    StyleChanged

    Fired when the control style changed.

    Swipe

    Fired when a pointer swipes over the screen.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    TabIndexChanged

    Fired when the property value has changed.

    TabStopChanged

    Fired when the value of the property changes.

    Tap

    Fired when a pointer taps on the screen.

    TextChanged

    Fired when the property value changes.

    TouchCancel

    Fired when a touch point has been disrupted in an implementation-specific manner (for example, too many touch points are created).

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    TouchEnd

    Fired when a touch point is removed from the touch surface.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    TouchMove

    Fired when a touch point is moved along the touch surface.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    TouchStart

    Fired when a touch point is placed on the touch surface.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    Track

    Fired when a pointer grabs an item and moves the pointer on it.

    This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

    Validated

    Fired when the control is finished validating.

    Validating

    Fired when the control is validating.

    VisibleChanged

    Fired when the property value changes.

    WidgetEvent

    Fired when the control receives a custom event from the client.

    JavaScript code can fire any event back to a control, including custom data, using:

    On the server side, the event name and event data are available in the WidgetEvent handler:

    Inherited By

    Name
    Description

    Implements

    Name
    Description

    GetClientEventListener

    GetClientEventListener

    vAlign

    Vertical alignment when using dock = , or , .

    hAlign

    Horizontal alignment when using dock = , or , or .

    vAlign

    Vertical alignment when using dock = , or , .

    hAlign

    Horizontal alignment when using dock = , or , or .

    vAlign

    Vertical alignment when using dock = , or , .

    useMargins

    When true (default), it will also use the to arrange the controls.

    hAlign

    Horizontal alignment when using dock = , or , or .

    vAlign

    Vertical alignment when using dock = , or , .

    vAlign

    Vertical alignment when using direction = .

    hAlign

    Horizontal alignment when using direction = .

    vAlign

    Vertical alignment when using direction = .

    hAlign

    Horizontal alignment when using direction = .

    vAlign

    Vertical alignment when using direction = .

    useMargins

    When true (default), it will also use the to arrange the controls.

    hAlign

    Horizontal alignment when using direction = .

    vAlign

    Vertical alignment when using direction = .

    wrap

    true to continue searching from the first control in the tab order after the last control has been reached; otherwise, false.

    specified

    A bitwise combination of the values. For any parameter not specified, the current value will be used.

    Represents a check box control.

    Displays a in which a check box is displayed to the left of each item.

    Represents a combo box control.

    Provides focus-management functionality for controls that can function as a container for other controls.

    Represents a control that allows the user to select or type a date and a time.

    Represents a spinner control that displays string values.

    Represents a panel that dynamically arranges its controls horizontally or vertically in automatic rows or columns.

    Represents a window or dialog box that makes up an application's user interface.

    Represents a Wisej control that displays a frame around a group of controls with an optional caption.

    Represents a label control.

    Represents an hyper-link control.

    Represents a control to display a list of items.

    Provides a common implementation of members for the and classes.

    Uses a mask to distinguish between proper and improper user input.

    Represents the container for multiple-document interface (MDI) child forms.

    Represents a control that enables the user to select a date using a visual monthly calendar display.

    Represents a spinner control that displays numeric values.

    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.

    Represents a collapsible panel with an optional header that contains a group of controls.

    Represents an image control.

    Represents a progress control that displays a value visually as a filled bar.

    Enables the user to select a single option from a group of choices when paired with other controls.

    Defines a base class for controls that support auto-scrolling behavior.

    Represents an horizontal scroll bar.

    Represents a vertical scroll bar.

    Implements the basic functionality of a scroll bar control.

    Represents a control consisting of a movable bar that divides a container's display area into two resizable panels.

    Creates a panel that is associated with a .

    Manages a related set of pages.

    Represents a single tab page in a .

    Represents a text box control that allows the user to enter any value.

    Implements the basic functionality required by text controls.

    Enables the user to choose between a range of values by sliding a small bar along another bar.

    Implements the basic functionality required by a spin box (also known as an up-down control).

    Provides an empty control that can be used to create other controls.

    Represents a web browser control that enables the user to navigate web pages inside a form or a page.

    Represents a control that can be hosted in a .

    Represents a control that can be hosted in a .

    Represents a control that can be hosted in a cell.

    Represents a control that can be hosted in a .

    Represents a control that can be hosted in a cell when the cell's is set to .

    Represents a data grid control.

    Displays data in a customizable list format.

    Used by the control to display data at run time.

    Represents a desktop container that can host floating windows.

    Displays collapsible set of panels for presenting information in a limited amount of space.

    Represents a panel in a control.

    Represents a control that can host ASP.NET or MVC pages within a Wisej application.

    Represents the HTML5 canvas element.

    Represents a control that can display flash applications.

    Represents a panel that dynamically arranges its child controls.

    Represents a control that displays any HTML file and a corresponding CSS style sheet as embedded HTML.

    Represents a control that displays any HTML file in an IFrame element.

    Represents a line control.

    The TreeViewComboBox control represents a control with a as the drop down panel.

    Base implementation for media controls.

    Represents a control that displays a video file.

    Represents a control that plays an audio file.

    Represents a control that can display a pdf document in the browser either using the native pdf viewer, the pdf.js viewer, Google docs, or a custom viewer.

    Represents a shape control. Displays an element a border in any of the four sides.

    Displays child controls vertically or horizontally in a scrollable container.

    Represents a spacer control. It can be used to add a space between controls in a layout panel. It is not rendered on the client.

    Represents a split button control.

    Represents a data field that displays a list of selectable and removable tags. The control recognizes tags as the user types and adds in front of the editable field.

    Represents a spinner control that displays values.

    The TreeViewComboBox control represents a control with a as the drop down panel.

    Represents a text box control that allows the user to enter a typed value.

    Represent an upload widget. Allows users to selected one or more files and upload them to the server.

    The UserComboBox control represents a control with a custom panel that drops down when the user clicks the down arrow.

    Provides an popup container that can be attached to other controls.

    Provides a generic widget that can use most third party javascript widgets.

    Represents a list view control, which displays a collection of items that can be displayed using one of four different views.

    Represents a menu bar component.

    Provides a user interface for browsing the properties of an object.

    Displays information to the user in a about the object being viewed, the object's components, or the object's operation.

    Represents a toolbar component.

    Displays a hierarchical collection of labeled items, each represented by a .

    name

    String

    Name of the client event to attach the listener to.

    script

    String

    JavaScript code to execute when the event occurs.

    name

    String

    Name of the css class to add.

    state

    String

    Name of the custom state to add to the widget.

    state

    String

    Name of the custom state to add to the widget.

    forward

    Boolean

    true to propagate the state to the widget's child components.

    method

    Delegate

    A delegate to a method that takes no parameters.

    method

    Delegate

    A delegate to a method that takes no parameters.

    args

    Object[]

    An optional array of objects to pass as arguments to the specified method.

    function

    String

    The name of the JavaScript function to execute.

    args

    Object[]

    The arguments to pass to the function.

    function

    String

    The name of the JavaScript function to execute.

    callback

    Action<Object>

    Asynchronous callback method that receives the return value.

    args

    Object[]

    The arguments to pass to the function.

    function

    String

    The name of the JavaScript function to execute.

    args

    Object[]

    The arguments to pass to the function.

    horizontal

    Boolean

    Center horizontally.

    vertical

    Boolean

    Center vertically.

    control

    Control

    The child Control to find.

    data

    Object

    The data to drag.

    allowedEffects

    DragDropEffects

    One of the DragDropEffects values.

    data

    Object

    The data to drag.

    allowedEffects

    DragDropEffects

    One of the DragDropEffects values.

    imageSource

    String

    The name or URL for an image to use as the drag cursor.

    data

    Object

    The data to drag.

    allowedEffects

    DragDropEffects

    One of the DragDropEffects values.

    imageSource

    String

    The name or URL for an image to use as the drag cursor.

    imageSize

    Size

    data

    Object

    The data to drag.

    allowedEffects

    DragDropEffects

    One of the DragDropEffects values.

    image

    Image

    An Image to use as the drag cursor.

    data

    Object

    The data to drag.

    allowedEffects

    DragDropEffects

    One of the DragDropEffects values.

    image

    Image

    An Image to use as the drag cursor.

    imageSize

    Size

    asyncResult

    IAsyncResult

    An IAsyncResult that represents a BeginInvoke operation started on a control.

    javaScript

    String

    The JavaScript code to run on the client.

    javaScript

    String

    The JavaScript code to evaluate on the client.

    callback

    Action<Object>

    Asynchronous callback method that receives the return value.

    javaScript

    String

    The JavaScript code to evaluate on the client.

    pt

    Point

    A Point that contains the coordinates where you want to look for a control. Coordinates are expressed relative to the upper-left corner of the control's client area.

    skipValue

    GetChildAtPointSkip

    One of the values of GetChildAtPointSkip, determining whether to ignore child controls of a certain type.

    pt

    Point

    A Point that contains the coordinates where you want to look for a control. Coordinates are expressed relative to the upper-left corner of the control's client area.

    id

    Int32

    Id of the listener to retrieve the script for.

    name

    String

    Name of the event.

    control

    Control

    The Control to start the search with.

    forward

    Boolean

    true to search forward in the tab order; false to search backward.

    flag

    ControlStyles

    The ControlStyles bit to return the value from.

    name

    String

    Name of the client event to verify.

    name

    String

    Css class name to verify.

    state

    String

    Name of the state to check.

    invalidateChildren

    Boolean

    When true, invalidates all the children of the control.

    method

    Delegate

    A delegate that contains a method to be called in the control's session context.

    method

    Delegate

    A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.

    args

    Object[]

    An array of objects to pass as arguments to the specified method. This parameter can be null if the method takes no arguments.

    charCode

    Char

    The character to test.

    text

    String

    The string to search.

    dock

    DockStyle

    Indicates whether to arrange the Controls horizontally or vertically.

    spacing

    Int32

    Spacing between the Controls.

    useMargins

    Boolean

    When true (default), it will also use the Margin to arrange the controls.

    hAlign

    HorizontalAlignment

    dock

    DockStyle

    Indicates whether to arrange the Controls horizontally or vertically.

    viewArea

    Rectangle

    Rectangle limiting the area to arrange the Controls in. If empty, it will use DisplayRectangle.

    spacing

    Int32

    Spacing between the Controls.

    useMargins

    Boolean

    controls

    ICollection<Control>

    List of child controls to arrange. If null, all the children will be arranged.

    dock

    DockStyle

    Indicates whether to arrange the Controls horizontally or vertically.

    spacing

    Int32

    Spacing between the Controls.

    useMargins

    Boolean

    controls

    ICollection<Control>

    List of child controls to arrange. If null, all the children will be arranged.

    dock

    DockStyle

    Indicates whether to arrange the Controls horizontally or vertically.

    viewArea

    Rectangle

    Rectangle limiting the area to arrange the Controls in. If empty, it will use DisplayRectangle.

    spacing

    Int32

    direction

    Orientation

    Indicates whether to arrange the Controls horizontally or vertically.

    spacing

    Int32

    Spacing between the Controls.

    useMargins

    Boolean

    When true (default), it will also use the Margin to arrange the controls.

    hAlign

    HorizontalAlignment

    direction

    Orientation

    Indicates whether to arrange the Controls horizontally or vertically.

    viewArea

    Rectangle

    Rectangle limiting the area to arrange the Controls in. If empty, it will use DisplayRectangle.

    spacing

    Int32

    Spacing between the Controls.

    useMargins

    Boolean

    controls

    ICollection<Control>

    List of child controls to arrange. If null, all the children will be arranged.

    direction

    Orientation

    Indicates whether to arrange the controls horizontally or vertically.

    spacing

    Int32

    Spacing between the controls .

    useMargins

    Boolean

    controls

    ICollection<Control>

    List of child controls to arrange. If null, all the children will be arranged.

    direction

    Orientation

    Indicates whether to arrange the controls horizontally or vertically.

    viewArea

    Rectangle

    Rectangle limiting the area to arrange the controls in. If empty, it will use DisplayRectangle.

    spacing

    Int32

    affectedControl

    Control

    A Control that represents the recently changed control.

    affectedProperty

    String

    The name of the recently changed property on the control that caused the layout to change.

    point

    Point

    The screen coordinate Point to convert.

    point

    Point

    The client coordinate Point to convert.

    rect

    Rectangle

    The screen coordinate Rectangle to convert.

    rect

    Rectangle

    The client coordinate Rectangle to convert.

    refreshChildren

    Boolean

    True to also refresh all the children of this control.

    id

    Int32

    Id of the listener to remove.

    name

    String

    Name of the event.

    name

    String

    The css class name to remove.

    state

    String

    Name of the state to remove.

    state

    String

    Name of the state to remove.

    forward

    Boolean

    true to remove the state to the widget's child components.

    performLayout

    Boolean

    true to apply all pending layout requests; otherwise, false.

    alignX

    HorizontalAlignment

    Indicates the HorizontalAlignment preference. The final location of the control depends on the scrollable range and the available space. Note that Center will not scroll the control to the center, but will instead scroll it into the closest visible location with the minimum movement.

    alignY

    VerticalAlignment

    Indicates the VerticalAlignment preference. The final location of the control depends on the scrollable range and the available space. Note that Middle will not scroll the control to the middle, but will instead scroll it into the closest visible location with the minimum movement.

    control

    Control

    The Control at which to start the search.

    forward

    Boolean

    true to move forward in the tab order; false to move backward in the tab order.

    tabStopOnly

    Boolean

    true to ignore the controls with the TabStop property set to false; otherwise, false.

    nested

    Boolean

    x

    Int32

    The new Left property value of the control.

    y

    Int32

    The new Top property value of the control.

    width

    Int32

    The new Width property value of the control.

    height

    Int32

    x

    Int32

    The new Left property value of the control.

    y

    Int32

    The new Top property value of the control.

    width

    Int32

    The new Width property value of the control.

    height

    Int32

    flags

    ValidationConstraints

    TableLayoutPanel

    Represents a panel that dynamically lays out its contents in a grid composed of rows and columns.

    FileDialogUI

    UI implementation for the FileDialog class.

    FolderBrowserDialogUI

    UI implementation for the FolderDialog class.

    BindingNavigator

    Represents the navigation and manipulation user interface (UI) for controls that are bound to a data source.

    Button

    Represents a button control.

    ButtonBase

    Implements the basic functionality common to button controls.

    IBindableComponent

    Bindable components implement this interface.

    IDropTarget

    Controls that support drag & drop operations implement this interface.

    IWisejComponent

    All wisej components implement this interface.

    IWisejControl

    All wisej controls derived from the Control class must implement this interface.

    IWisejSerializable

    Allows an object to serialize itself.

    Control
    String
    String
    AccessibleRole
    Boolean
    Boolean
    AnchorStyles
    Boolean
    String
    Color
    Image
    ImageLayout
    ImageLayout
    String
    Boolean
    BindingContext
    BindingContext
    Int32
    Rectangle
    Boolean
    Boolean
    Boolean
    Boolean
    Boolean
    ClientEventCollection
    AddClientEventListener
    HasClientEventListener
    RemoveClientEventListener
    RemoveClientEventListener
    Rectangle
    Size
    Boolean
    ContextMenu
    ControlCollection
    Boolean
    String
    StyleSheet
    AddCssClass
    RemoveCssClass
    HasCssClass
    String
    Cursor
    ControlBindingsCollection
    Color
    Font
    Color
    Rectangle
    Boolean
    DockStyle
    Boolean
    Boolean
    Boolean
    Boolean
    Font
    Color
    IntPtr
    Boolean
    Boolean
    Boolean
    Boolean
    UserData
    Int32
    String
    #qx
    wisej-js
    ClientEvents
    AddClientEventListener
    HasClientEventListener
    RemoveClientEventListener
    RemoveClientEventListener
    Boolean
    Boolean
    Boolean
    Boolean
    LayoutEngine
    Int32
    Point
    Padding
    Size
    Size
    Keys
    MouseButtons
    Point
    Boolean
    String
    Padding
    Control
    Size
    AnchorStyles
    ResponsiveProfileCollection
    Int32
    RightToLeft
    Inherit
    Inherit
    Boolean
    Selectable
    Focusable
    Selectable
    Boolean
    Size
    String[]
    AddState
    RemoveState
    HasState
    AddState
    Int32
    Boolean
    Focusable
    Object
    String
    String
    ToolTipText
    ToolTip
    ToolTipText
    ForeColor
    AutomaticDelay
    InitialDelay
    AutoPopDelay
    ToolTipText
    ToolTip
    ToolTipText
    Int32
    Control
    Form
    Form
    Object
    Boolean
    Boolean
    Boolean
    Int32
    Int32
    Int32
    RemoveClientEventListener
    GetClientEventListener
    CssClass
    String
    CssClass
    String[]
    States
    States
    String[]
    States
    States
    IAsyncResult
    IAsyncResult
    BeginInvoke
    IAsyncResult
    IAsyncResult
    Control
    Control
    Control
    Task
    Task<Object>
    Task
    Control
    Control
    Boolean
    Control
    DragDropEffects
    DragDropEffects
    DragDropEffects
    DragDropEffects
    DragDropEffects
    DragDropEffects
    DragDropEffects
    DragDropEffects
    DragDropEffects
    DragDropEffects
    Object
    Control
    Control
    Task
    Task<Object>
    Task
    Form
    Form
    Page
    Page
    Boolean
    Control
    Control
    Control
    Control
    String
    String[]
    IContainerControl
    IContainerControl
    IContainerControl
    Control
    Control
    Boolean
    Boolean
    CssClass
    Boolean
    CssClass
    States
    Boolean
    Control
    Object
    Object
    Object
    Boolean
    Control
    Control
    Control
    Control
    Control
    Control
    ArgumentException
    ArgumentException
    Point
    Point
    Point
    Point
    Point
    Point
    Rectangle
    Rectangle
    Rectangle
    Rectangle
    Rectangle
    Rectangle
    Boolean
    Boolean
    CssClass
    String
    CssClass
    String[]
    States
    States
    String[]
    States
    States
    Control
    Control
    Control
    Control
    Boolean
    Control
    Control
    Control
    Control
    Selectable
    Boolean
    Validating
    Validated
    Boolean
    Validating
    Validated
    EventHandler
    Appear
    Disappear
    EventHandler
    AutoSize
    EventHandler
    BackColor
    EventHandler
    BackgroundImage
    EventHandler
    BackgroundImageLayout
    EventHandler
    BecomingActiveControl
    EventHandler
    BindingContext
    EventHandler
    CausesValidation
    EventHandler
    EventHandler
    ClientSize
    EventHandler
    ContextMenu
    ControlEventHandler
    ControlCollection
    EventHandler
    ControlEventHandler
    ControlCollection
    EventHandler
    Cursor
    EventHandler
    Appear
    Disappear
    EventHandler
    EventHandler
    Dock
    EventHandler
    DragEventHandler
    EventHandler
    DragEventHandler
    EventHandler
    DragEventHandler
    EventHandler
    EventHandler
    Enabled
    EventHandler
    Movable
    Movable
    Location
    EventHandler
    ResizableEdges
    ResizableEdges
    None
    Size
    EventHandler
    EventHandler
    Font
    EventHandler
    ForeColor
    EventHandler
    HelpEventHandler
    EventHandler
    KeyEventHandler
    KeyPressEventHandler
    KeyEventHandler
    LayoutEventHandler
    EventHandler
    EventHandler
    Location
    EventHandler
    EventHandler
    EventHandler
    EventHandler
    MouseEventHandler
    MouseEventHandler
    MouseEventHandler
    EventHandler
    EventHandler
    EventHandler
    MouseEventHandler
    MouseEventHandler
    MouseEventHandler
    EventHandler
    PaintEventHandler
    EventHandler
    Parent
    PinchEventHandler
    PreviewKeyDownEventHandler
    KeyDown
    QueryContinueDragEventHandler
    EventHandler
    ResponsiveProfileChangedEventHandler
    EventHandler
    RightToLeft
    RotateEventHandler
    EventHandler
    Size
    EventHandler
    Movable
    Movable
    EventHandler
    ResizableEdges
    ResizableEdges
    None
    EventHandler
    SwipeEventHandler
    EventHandler
    TabIndex
    EventHandler
    TabStop
    EventHandler
    EventHandler
    Text
    TouchEventHandler
    TouchEventHandler
    TouchEventHandler
    TouchEventHandler
    TrackEventHandler
    EventHandler
    CancelEventHandler
    EventHandler
    Visible
    WidgetEventHandler

    The size of the drag image specified in imageSource.

    The size of the drag image specified in image.

    Horizontal alignment when using dock = , or , or .

    When true (default), it will also use the to arrange the controls.

    When true (default), it will also use the to arrange the controls.

    Spacing between the .

    Horizontal alignment when using direction = .

    When true (default), it will also use the to arrange the controls.

    When true (default), it will also use the to arrange the controls.

    Spacing between the controls .

    true to include nested (children of child controls) child controls; otherwise, false.

    The new property value of the control.

    The new property value of the control.

    
    
      // set the border radius to 100% and make the control round.
      this.button1.CssStyle = "border-radius:100%";
    
    
    
      // change the background color of the internal label of the button widget.
      this.button1.InitScript = "this.getChildControl('label').setBackgroundColor('red')";
    
      // attach a JavaScript event handler.
      this.textBox1.InitScript = @"this.addListener('keydown', function(e) {
        if (e.getKeyIdentifier() == "PageDown") {
          alert('You pressed PageDown.');
        }
      });
    
    
    
      // force the widget to update the UI as if it was hovered and focused.
      this.button1.States = new [] { "hovered", "focused" };
    
      // apply a custom state defined in a custom theme or theme mixing.
      this.panel1.States = new [] { "alert" };
    
    
      this.fireWidgetEvent("myevent", {x:1, y:2, name:'test'});
    
    
      
      private void control_WidgetEvent(object sender, WidgetEventArgs e) {
        
        switch (e.Type) {
        
          case "myevent":
            var data = e.Data;
            Alert.Show($"x={data.x}, y={data.y}, name={data.name}");
            break;
        }
      }
    
    Fill
    Top
    Bottom
    VerticalAlignment
    Fill
    Left
    Right
    Margin
    HorizontalAlignment
    Fill
    Top
    Bottom
    VerticalAlignment
    Fill
    Left
    Right
    Margin
    HorizontalAlignment
    Fill
    Top
    Bottom
    VerticalAlignment
    Fill
    Left
    Right
    Controls
    Boolean
    Margin
    HorizontalAlignment
    Fill
    Top
    Bottom
    VerticalAlignment
    Fill
    Left
    Right
    Vertical
    VerticalAlignment
    Horizontal
    Margin
    HorizontalAlignment
    Vertical
    VerticalAlignment
    Horizontal
    Margin
    HorizontalAlignment
    Vertical
    VerticalAlignment
    Horizontal
    Boolean
    Margin
    HorizontalAlignment
    Vertical
    VerticalAlignment
    Horizontal
    Boolean
    Height
    Height
    BoundsSpecified
    BoundsSpecified
    CheckBox
    CheckedListBox
    ListBox
    ComboBox
    ContainerControl
    DateTimePicker
    DomainUpDown
    FlowLayoutPanel
    Form
    GroupBox
    Label
    LinkLabel
    ListBox
    ListControl
    ListBox
    ComboBox
    MaskedTextBox
    MdiClient
    MonthCalendar
    NumericUpDown
    Page
    Panel
    PictureBox
    ProgressBar
    RadioButton
    RadioButton
    ScrollableControl
    HScrollBar
    VScrollBar
    ScrollBar
    SplitContainer
    SplitterPanel
    SplitContainer
    TabControl
    TabPage
    TabPage
    TabControl
    TextBox
    TextBoxBase
    TrackBar
    UpDownBase
    UserControl
    WebBrowser
    DataGridViewComboBoxEditingControl
    ComboBox
    DataGridViewComboBoxCell
    DataGridViewDateTimePickerEditingControl
    DateTimePicker
    DataGridViewDateTimePickerCell
    DataGridViewMaskedTextBoxEditingControl
    MaskedTextBox
    DataGridViewMaskedTextBoxCell
    DataGridViewNumericUpDownEditingControl
    NumericUpDown
    DataGridViewNumericUpDownCell
    DataGridViewTextBoxEditingControl
    TextBox
    DataGridViewTextBoxCell
    WrapMode
    False
    DataGridView
    DataRepeater
    DataRepeaterItem
    DataRepeater
    Desktop
    Accordion
    AccordionPanel
    AccordionPanel
    Accordion
    AspNetPanel
    Canvas
    FlashPlayer
    FlashPlayer
    FlexLayoutPanel
    HtmlPanel
    IFramePanel
    Line
    ListViewComboBox
    UserComboBox
    ListView
    Media
    Video
    Video
    Audio
    Audio
    PdfViewer
    PdfViewer
    Shape
    SlideBar
    Spacer
    SplitButton
    TagTextBox
    TimeUpDown
    TimeSpan
    TreeViewComboBox
    UserComboBox
    TreeView
    TypedTextBox
    Upload
    UserComboBox
    ComboBox
    UserPopup
    Widget
    ListView
    MenuBar
    PropertyGrid
    StatusBar
    ToolBar
    TreeView
    TreeNode