I have a solution where I am using the implicit themes and have a pallete switchers similar to what your Executive Dashboard is using. I have set up different gauge properties to switch when I click the theme toggle button. But i can not get the GaugeRange backgrounds to change. In fact they don't even display. Here is some sample code
You will see I have set up DynamicResources for all of the Tick Backgrounds and they work perfectly. But the GaugeRange backgrounds do not work at all. In fact they do not show up at all. Is there something special I need to do to set DynamicResources on these?
<
telerik:RadialScale
x:Name
=
"innerChannelRadialScale"
Min
=
"0"
Max
=
"300"
Radius
=
"0.68"
MajorTicks
=
"10"
MinorTicks
=
"5"
LabelRotationMode
=
"None"
FontWeight
=
"Bold"
FontSize
=
"60"
SweepAngle
=
"359"
StartAngle
=
"90"
ShowLastLabel
=
"True"
ShowFirstLabel
=
"False"
MajorTickBackground
=
"{DynamicResource MajorTickBackground}"
MiddleTickBackground
=
"{DynamicResource MiddleTickBackground}"
MinorTickBackground
=
"{DynamicResource MinorTickBackground}"
>
<
telerik:RadialScale.Ranges
>
<
telerik:GaugeRange
x:Name
=
"innerAlarmLowRange"
Min
=
"0"
Max
=
"50"
StartWidth
=
"0.04"
EndWidth
=
"0.01"
Background
=
"{DynamicResource AlertRangeBackground}"
/>
<
telerik:GaugeRange
x:Name
=
"innerNormalRange"
Min
=
"50"
Max
=
"250"
StartWidth
=
"0.01"
EndWidth
=
"0.01"
Background
=
"{DynamicResource NormalRangeBackground}"
/>
<
telerik:GaugeRange
x:Name
=
"innerAlarmHighRange"
Min
=
"250"
Max
=
"300"
StartWidth
=
"0.01"
EndWidth
=
"0.03"
Background
=
"#FFE50000"
/>
</
telerik:RadialScale.Ranges
>
You will see I have set up DynamicResources for all of the Tick Backgrounds and they work perfectly. But the GaugeRange backgrounds do not work at all. In fact they do not show up at all. Is there something special I need to do to set DynamicResources on these?