Skip to content

Use HTML-CSS Support to display styled alert windows in different colors.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-alert-display-colored-messages-html-css-support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Alert Control - Display alert popups in different colors

The WinForms AlertControl v.22.1+ supports HTML and CSS Templates. This example handles the AlertControl.CustomizeHtmlTemplate event to customize the background color of alert windows:

private void alertControl2_CustomizeHtmlTemplate(object sender, DevExpress.XtraBars.Alerter.CustomizeAlertHtmlTemplateEventArgs e) {
    DxHtmlElement element = e.Root.FindElementById("popup");
    if (element != null)
        element.Style.SetBackgroundColor(colorPickEdit1.Color);
}

WinForms Alert Control - Display alert popups in different colors

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)