Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.13 KB

kb-desktopalert-change-background-color.md

File metadata and controls

50 lines (41 loc) · 1.13 KB
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

Environment

Product Version 2021.2.615
Product RadDesktopAlert for WPF

Description

How to change the RadDesktopAlert control's background color.

Solution

When creating a new RadDesktopAlert instance, set the Background property to be the desired color.

__[C#] __

{{region kb-desktop-alert-change-background-color-0}} var alert = new RadDesktopAlert { Background = Brushes.Red }; {{endregion}}

[VB.NET]

{{region kb-desktop-alert-change-background-color-1}} Dim alert = New RadDesktopAlert With { .Background = Brushes.Red } {{endregion}}