Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Wisej.Web.AlertBox
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Displays an alert box that can contain an icon and text that inform and instruct the user. Alert boxes are not modal and can disappear automatically.
Displays an alert box with the specified text and icon in the specified position.
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
All wisej components implement this interface.
Allows an object to serialize itself.
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any html.
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
showCloseButton
Shows or hides the close button. If not set it's managed automatically.
alignment
One of the ContentAlignment values that specifies where on the screen to display the alert box.
autoCloseDelay
A value in milliseconds that determines the delay after which the alert box disappears automatically. The default is 5000 (5 seconds). If set to 0 the box stays open.
onclose
Optional async handler for the close event; called when the Alert Box is closed either automatically or by the user.
showProgressBar
Shows a progress bar to display the time remaining until the alert box is automatically closed. If left null, it's managed by the theme.
allowHtml
Allows the message text to include HTML code.
Wisej.Web.MessageBox
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Displays a message box that can contain text, buttons, and symbols that inform and instruct the user.
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Parameter | Type | Description |
---|---|---|
Returns: DialogResult. One of the DialogResult values.
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Returns: DialogResult. One of the DialogResult values.
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Returns: Task<DialogResult>. One of the DialogResult values.
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Returns: Task<DialogResult>. One of the DialogResult values.
Wisej.Web.MessageBoxButtons
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Specifies constants defining which buttons to display on a MessageBox.
Name | Description |
---|---|
Name | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
owner
An implementation of Form that owns the modal dialog box.
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any html.
caption
The text to display in the title bar of the message box.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the message box.
modal
Indicates whether the dialog box is modal and waits for the user response before resuming execution. When set to false, the return valid is always DialogResult.None. The default is true - modal.
allowHtml
Allows the message text to include HTML code.
keepOnScreen
Keeps the message box in the viewable area when being moved by the user. The default is false.
rightToLeft
Indicates whether the dialog box should display it's content right aligned.
onclose
Optional async handler for the close event; called when the MessageBox has been closed.
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any html.
caption
The text to display in the title bar of the message box.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the message box.
modal
Indicates whether the dialog box is modal and waits for the user response before resuming execution. When set to false, the return valid is always DialogResult.None. The default is true - modal.
allowHtml
Allows the message text to include HTML code.
keepOnScreen
Keeps the message box in the viewable area when being moved by the user. The default is false.
rightToLeft
Indicates whether the dialog box should display it's content right aligned.
owner
An implementation of Form that owns the modal dialog box.
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any html.
caption
The text to display in the title bar of the message box.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the message box.
modal
Indicates whether the dialog box is modal and waits for the user response before resuming execution. When set to false, the return valid is always DialogResult.None. The default is true - modal.
allowHtml
Allows the message text to include HTML code.
keepOnScreen
Keeps the message box in the viewable area when being moved by the user. The default is false.
rightToLeft
Indicates whether the dialog box should display it's content right aligned.
All wisej components implement this interface.
Allows an object to serialize itself.
AbortRetryIgnore
The message box contains Abort, Retry, and Ignore buttons.
Cancel
The message box contains a Cancel button.
No
The message box contains a No button.
OK
The message box contains an OK button.
OKCancel
The message box contains OK and Cancel buttons.
RetryCancel
The message box contains Retry and Cancel buttons.
Yes
The message box contains a Yes button.
YesNo
The message box contains Yes and No buttons.
YesNoCancel
The message box contains Yes, No, and Cancel buttons.
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Error | The message box contains an icon consisting of an X or an exclamation point typically on a red background to symbolize an error condition. |
Hand | The message box contains an icon consisting of a raised hand. |
Information | The message box contains an icon consisting of the letter i in a circle |
None | No icon is shown in the message box. |
Question | The message box contains an icon consisting of a question mark in a circle. |
Stop | The message box contains an icon consisting of a stop sign. |
Warning | The message box contains an icon consisting of an exclamation point in a triangle to symbolize a warning sign. |
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. |
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. |
Displays an alert box with the specified text and icon in the specified position. |
Plays one of the built-in sounds |
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any html.
caption
The text to display in the title bar of the message box.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the message box.
modal
Indicates whether the message box is modal and waits for the user response before resuming execution. When set to false, the return valid is always DialogResult.None. The default is true - modal.
allowHtml
Allows the message text to include HTML code.
keepOnScreen
Keeps the message box in the viewable area when being moved by the user. The default is false.
rightToLeft
Indicates whether the dialog box should display it's content right aligned.
onclose
Optional async handler for the close event; called when the MessageBox has been closed.
Button1 | The first button on the message box is the default button. |
Button2 | The second button on the message box is the default button. |
Button3 | The third button on the message box is the default button. |
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. |
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. |
Error | The message box contains an icon consisting of an X or an exclamation point typically on a red background to symbolize an error condition. |
Hand | The message box contains an icon consisting of a raised hand. |
Information | The message box contains an icon consisting of the letter i in a circle |
None | No icon is shown in the message box. |
Question | The message box contains an icon consisting of a question mark in a circle. |
Stop | The message box contains an icon consisting of a stop sign. |
Warning | The message box contains an icon consisting of an exclamation point in a triangle to symbolize a warning sign. |
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. |
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. |
Displays an alert box with the specified text and icon in the specified position. |
Plays one of the built-in sounds |
Wisej.Web.Toast
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Displays a toast that can contain an icon and text.
A toast is a small widget that displays a simple message and an icon above all other controls on the web page. Multiple toasts can appear at the same time and at different locations on the screen. By default, the toast will automatically close after the AutoCloseDelay milliseconds. When a toast is closed and the AutoDispose property is true, it is automatically disposed and cannot be reused. Otherwise it is reusable and it's application's responsibility to dispose it when no longer needed.
Creates and initializes a new instance of the Toast class using the specified arguments.
Name | Type | Description |
---|---|---|
ContentAlignment: Returns or sets the location where to display the toast. The default is TopCenter
Boolean: Returns or sets a value indicating that the control can display HTML in the Text property.
Newlines (CRLF) are converted to when allowHtml is false, or when allowHtml is true and the text doesn't contain any html.
Int32: Returns or sets the auto close delay in milliseconds. The default is 5000 (5 seconds).
Boolean: Return or sets a flag indicating whether the toast is automatically disposed when closed. The default is false.
Color: Returns or sets the background color for the toast.
Color: Returns or sets the text color of the toast.
String: Returns or sets the icon name or URL to display in the toast.
String: Returns or sets the text to display in the toast.
Hides the toast.
Shows the toast.
Returns: Toast.
EventHandler Occurs when the user clicks the toast.
EventHandler Occurs when the toast is closed.
Name | Description |
---|---|
All wisej components implement this interface.
Allows an object to serialize itself.
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any HTML.
icon
An icon name or URL.