title | page_title | description | type | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|---|
Set RadDesktopAlert Control's Background Color |
Set RadDesktopAlert control's background color when showing a new object of type RadDesktopAlert. |
Change default background color of the RadDesktopAlert control when creating a new class instance. |
how-to |
kb-desktopalert-change-background-color |
0 |
desktop, alert, background |
1534079 |
kb |
Product Version | 2021.2.615 |
Product | RadDesktopAlert for WPF |
How to change the RadDesktopAlert control's background color.
When creating a new RadDesktopAlert instance, set the Background property to be the desired color.
{{region kb-desktop-alert-change-background-color-0}} var alert = new RadDesktopAlert { Background = Brushes.Red }; {{endregion}}
{{region kb-desktop-alert-change-background-color-1}} Dim alert = New RadDesktopAlert With { .Background = Brushes.Red } {{endregion}}