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...
Loading...
Wisej.Web.Clipboard
public class ClipboardPublic Class ClipboardWisej.Web.KeyEventArgs
Wisej.Web.QueryContinueDragEventHandler
Wisej.Web.Cursor
Wisej.Web.DataObject
public class DataObject : IDataObjectPublic Class DataObject
Inherits IDataObjectWisej.Web.Button
Wisej.Web.RadioButton
public class RadioButton : ButtonBasePublic Class RadioButton
Inherits ButtonBaseWisej.Web.FileDialogLoadPathEventArgs
Wisej.Web.DataRepeaterAddRemoveItemsEventArgs
Wisej.Web.DataRepeaterAddRemoveItemsEventHandler
Wisej.Web.DataRepeaterItemCloneEventHandler
Wisej.Web.Desktop
Public Class Desktop
Inherits ContainerControl
Implements IWisejWindow, IWisejDesignTargetpublic class Desktop : ContainerControl, IWisejWindow, IWisejDesignTargetWisej.Web.Application PageCollection
Wisej.Web.MenuButtonItemClickedEventHandler
Public Class PageCollection
Inherits ICollection
Implements IEnumerablepublic class PageCollection : ICollection, IEnumerablePublic Delegate Sub MenuButtonItemClickedEventHandler(ByVal sender As [Object], ByVal e As MenuButtonItemClickedEventArgs)public delegate void MenuButtonItemClickedEventHandler(Object sender, MenuButtonItemClickedEventArgs e)Wisej.Web.ResponsiveProfileChangedEventHandler
Wisej.Web.HashChangedEventArgs
Wisej.Web.HelpEventArgs
Wisej.Web.ResponsiveProfileChangedEventArgs
Wisej.Web.HelpEventHandler
Wisej.Web.DragEventHandler
Wisej.Web.KeyEventHandler
Wisej.Web.TouchEventArgs
Wisej.Web.PinchEventHandler
Wisej.Web.WidgetEventArgs
Wisej.Web.TrackEventHandler
Wisej.Web.MenuButtonItemClickedEventArgs
Wisej.Web.WidgetEventHandler
Wisej.Web.SwipeEventHandler
Wisej.Web.SwipeEventArgs
Wisej.Web.ColorDialog
Wisej.Web.FileDialogLoadPathEventHandler
Wisej.Web.AccordionAction
Wisej.Web.AccordionEventHandler
Wisej.Web.AccordionCancelEventHandler
Wisej.Web.DataRepeaterDataErrorEventHandler
Wisej.Web.DataRepeaterAddRemoveItemsCancelEventHandler
Wisej.Web.DataRepeaterItemEventHandler
Wisej.Web.AcceleratorEventArgs
Wisej.Web.DataRepeaterAddRemoveItemsCancelEventArgs
Wisej.Web.DataRepeaterItemValueEventHandler
Public Class HashChangedEventArgs
Inherits EventArgspublic class HashChangedEventArgs : EventArgsPublic Class HelpEventArgs
Inherits EventArgspublic class HelpEventArgs : EventArgsPublic Class ResponsiveProfileChangedEventArgs
Inherits EventArgspublic class ResponsiveProfileChangedEventArgs : EventArgsPublic Delegate Sub HelpEventHandler(ByVal sender As [Object], ByVal hlpevent As HelpEventArgs)public delegate void HelpEventHandler(Object sender, HelpEventArgs hlpevent)Public Delegate Sub DragEventHandler(ByVal sender As [Object], ByVal e As DragEventArgs)public delegate void DragEventHandler(Object sender, DragEventArgs e)Public Delegate Sub KeyEventHandler(ByVal sender As [Object], ByVal e As KeyEventArgs)public delegate void KeyEventHandler(Object sender, KeyEventArgs e)Public Class TouchEventArgs
Inherits EventArgspublic class TouchEventArgs : EventArgsPublic Delegate Sub PinchEventHandler(ByVal sender As [Object], ByVal e As PinchEventArgs)public delegate void PinchEventHandler(Object sender, PinchEventArgs e)Public Class WidgetEventArgs
Inherits EventArgspublic class WidgetEventArgs : EventArgsPublic Delegate Sub TrackEventHandler(ByVal sender As [Object], ByVal e As TrackEventArgs)public delegate void TrackEventHandler(Object sender, TrackEventArgs e)Public Class MenuButtonItemClickedEventArgs
Inherits EventArgspublic class MenuButtonItemClickedEventArgs : EventArgsPublic Delegate Sub WidgetEventHandler(ByVal sender As [Object], ByVal e As WidgetEventArgs)public delegate void WidgetEventHandler(Object sender, WidgetEventArgs e)Public Delegate Sub SwipeEventHandler(ByVal sender As [Object], ByVal e As SwipeEventArgs)public delegate void SwipeEventHandler(Object sender, SwipeEventArgs e)Public Class SwipeEventArgs
Inherits EventArgspublic class SwipeEventArgs : EventArgspublic class ColorDialog : CommonDialogPublic Class ColorDialog
Inherits CommonDialogPublic Delegate Sub FileDialogLoadPathEventHandler(ByVal sender As [Object], ByVal e As FileDialogLoadPathEventArgs)public delegate void FileDialogLoadPathEventHandler(Object sender, FileDialogLoadPathEventArgs e)Public Enum AccordionAction As [Enum]public enum AccordionAction : EnumPublic Delegate Sub AccordionEventHandler(ByVal sender As [Object], ByVal e As AccordionEventArgs)public delegate void AccordionEventHandler(Object sender, AccordionEventArgs e)Public Delegate Sub AccordionCancelEventHandler(ByVal sender As [Object], ByVal e As AccordionCancelEventArgs)public delegate void AccordionCancelEventHandler(Object sender, AccordionCancelEventArgs e)Public Delegate Sub DataRepeaterDataErrorEventHandler(ByVal sender As [Object], ByVal e As DataRepeaterDataErrorEventArgs)public delegate void DataRepeaterDataErrorEventHandler(Object sender, DataRepeaterDataErrorEventArgs e)Public Delegate Sub DataRepeaterAddRemoveItemsCancelEventHandler(ByVal sender As [Object], ByVal e As DataRepeaterAddRemoveItemsCancelEventArgs)public delegate void DataRepeaterAddRemoveItemsCancelEventHandler(Object sender, DataRepeaterAddRemoveItemsCancelEventArgs e)Public Delegate Sub DataRepeaterItemEventHandler(ByVal sender As [Object], ByVal e As DataRepeaterItemEventArgs)public delegate void DataRepeaterItemEventHandler(Object sender, DataRepeaterItemEventArgs e)public class AcceleratorEventArgs : KeyEventArgsPublic Class AcceleratorEventArgs
Inherits KeyEventArgsPublic Class DataRepeaterAddRemoveItemsCancelEventArgs
Inherits CancelEventArgspublic class DataRepeaterAddRemoveItemsCancelEventArgs : CancelEventArgsPublic Delegate Sub DataRepeaterItemValueEventHandler(ByVal sender As [Object], ByVal e As DataRepeaterItemValueEventArgs)public delegate void DataRepeaterItemValueEventHandler(Object sender, DataRepeaterItemValueEventArgs e)Wisej.Web.DesktopTaskBarItemClickEventHandler
Wisej.Web.PreviewKeyDownEventArgs
Wisej.Web.SplitButton
Wisej.Web.FileDialogUI
Wisej.Web.FolderBrowserDialogUI
Wisej.Web.AccordionCancelEventArgs
Wisej.Web.AccordionEventArgs
Wisej.Web.RotateEventArgs
Public Class PreviewKeyDownEventArgs
Inherits EventArgspublic class PreviewKeyDownEventArgs : EventArgspublic class SplitButton : ButtonPublic Class SplitButton
Inherits Buttonpublic class FileDialogUI : FormPublic Class FileDialogUI
Inherits Formpublic class FolderBrowserDialogUI : FormPublic Class FolderBrowserDialogUI
Inherits FormPublic Class AccordionCancelEventArgs
Inherits CancelEventArgspublic class AccordionCancelEventArgs : CancelEventArgsPublic Class AccordionEventArgs
Inherits EventArgspublic class AccordionEventArgs : EventArgsPublic Class RotateEventArgs
Inherits EventArgspublic class RotateEventArgs : EventArgsWisej.Web.OpenFileDialog
Wisej.Web.DataRepeaterItemValueEventArgs
Wisej.Web.DesktopTaskBarItemClickEventArgs
Wisej.Web.DataRepeaterItem
Wisej.Web.ResponsiveProfileChangedEventHandler
Public Class OpenFileDialog
Inherits FileDialogpublic class OpenFileDialog : FileDialogPublic Class DesktopTaskBarItemClickEventArgs
Inherits MouseEventArgspublic class DesktopTaskBarItemClickEventArgs : MouseEventArgsPublic Class DataRepeaterItem
Inherits Panelpublic class DataRepeaterItem : PanelWisej.Web.FolderBrowserDialog
Wisej.Web.SaveFileDialog
Wisej.Web.MouseEventArgs
Wisej.Web.CheckBox
Wisej.Web.AccordionPanel
Public Class SaveFileDialog
Inherits FileDialogpublic class SaveFileDialog : FileDialogPublic Class MouseEventArgs
Inherits EventArgspublic class MouseEventArgs : EventArgspublic class CheckBox : ButtonBasePublic Class CheckBox
Inherits ButtonBasepublic class AccordionPanel : PanelPublic Class AccordionPanel
Inherits PanelPublic Class FolderBrowserDialog
Inherits CommonDialogpublic class FolderBrowserDialog : CommonDialogWisej.Web.Component
Wisej.Web.ButtonBase
Wisej.Web.DesktopTaskBarItem
Wisej.Web.Control ControlCollection
public class ControlCollection : ControlCollection,Public Class ControlCollection
Inherits ControlCollection
Implements IList(Of Control), ICollection(Of Control), IEnumerable(Of Control), IWisejSynchronizedPublic Class Component
Inherits Component
Implements IComponentpublic class Component : Component, IComponentPublic Class ButtonBase
Inherits Controlpublic class ButtonBase : ControlPublic Class DesktopTaskBarItem
Inherits Componentpublic class DesktopTaskBarItem : ComponentWisej.Web.ContainerControl
Wisej.Web.Padding
Public Class ContainerControl
Inherits ScrollableControl
Implements IContainerControl, IContainerControlpublic class ContainerControl : ScrollableControl, IContainerControl, IContainerControlPublic Structure Padding
Implements ValueType, IWisejSerializablepublic struct Padding : ValueType, IWisejSerializableWisej.Web.FileDialog
Public Class FileDialog
Inherits CommonDialogpublic class FileDialog : CommonDialogWisej.Web.Accordion
Public Class Accordion
Inherits Control
Implements ISupportInitializepublic class Accordion : Control, ISupportInitializeWisej.Web.DataRepeater
Public Class DataRepeater
Inherits ContainerControl
Implements ISupportInitializepublic class DataRepeater : ContainerControl, ISupportInitializeWisej.Web.Application
public class Application : IWisejComponent,Public Class Application
Inherits IWisejComponent
Implements IDisposable, IWisejSynchronized 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.
});
});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);
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);
}
});
});Wisej.Web.Control
public class Control : IWisejControl, Public Class Control
Inherits IWisejControl
Implements IWisejComponent, IBindableComponent, IWisejSerializable, IHasPropertyStore, IHasResponsiveProfiles
// 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;
}
}