Skip to main content
All docs
V25.1
  • AlertControl.HtmlTemplate Property

    Specifies the HTML-CSS template used to render alert windows.

    Namespace: DevExpress.XtraBars.Alerter

    Assembly: DevExpress.XtraBars.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    [DXCategory("Layout")]
    public HtmlTemplate HtmlTemplate { get; }

    Property Value

    Type Description
    HtmlTemplate

    The HTML-CSS template used to render alert windows.

    Remarks

    AlertControl can render alert windows from HTML-CSS templates. Use the HtmlTemplate property to specify the default template.

    The AlertControl.HtmlTemplates collection allows you to create multiple templates beforehand. You can handle the AlertControl.BeforeFormShow event to assign templates from this collection to alert windows dynamically.

    Handle the AlertControl.CustomizeHtmlTemplate event to modify elements of template-based alert windows dynamically.

    See the following topic for more information: Alert Windows with HTML Templates.

    Important

    We do not recommend using HTML Text Formatting and HTML & CSS Templates features together.

    See Also