The error is occurring because you are assigning a SolidColorBrush
as a Color
property of a SolidColorBrush
. The brush resources of our themes (e.g. AccentBrush
) are already SolidColorBrushes
You can achieve the desired result by getting the color value of the AccentBrush
( I could guess it is #FF25A0DA
) and change its opacity. The structure of the ColorValue
, where AA is alpha. So you can redefine the Color
(as 19 is 10% of FF).
Or in a similar way you are setting it now with Opacity
as a separate property, only assign a color to the Color
setter, not a SolidColorBrush
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.