Skip to main content

Toast

WATCH & LEARN0:49 · Animated tutorial
7 scenesPlay, pause, or scrub at your own pace

Unlike the static MessageBox and AlertBox, the Wisej.NET Toast is an instantiable component that can be reused and updated while visible.

Position the Toast in any of 9 standard locations (default: TopCenter). It displays an icon and text content, with optional HTML support via the AllowHtml property.

warning

Toast notifications auto-close after 5 seconds by default but don't auto-dispose. Enable AutoDispose for automatic disposal on close. Handle the Click event for user interactions and the Close event for cleanup operations.

info

For a complete list of properties, methods, and events, see the API documentation.

Features​

Delayed Closing​

The AutoCloseDelay property controls notification display duration.

Toast notification with custom auto-close delay

HTML Content​

Enable HTML content by setting the AllowHtml property to true:

Toast displaying HTML formatted content

var toast = new Toast
{
AllowHtml = true,
Text = @"<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>"
};
toast.Show();

Advanced​

JavaScript Widget​

ItemDescription
Class name"wisej.web.Toast"
Theme appearance"toast", see Themes
Source codehttps://github.com/iceteagroup/wisej-js