This question is locked. New answers and comments are not allowed.
Hello,
I am working on styling a RadialGauge to set the background color as a gradient. Usually, I would extract the Template using Expression Blend, but I know this doesn't always work correctly with Telerik controls. Could you provide the full style template for the RadialGauge for customization?
Also, I am customizing a LinearGauge. I am using parts of the gauge to create a red/green indicator bar (see attached image). The problem I'm having is that the LinearRange control does not seem to allow a gradient background. Am I able to achieve this by customizing the default style template? If so, could you also provide the full style template for LinearGauge / LinearRange as well?
Here is my existing code where the "GreenGradient" and "RedGradient" have no effect, I just get a solid Red or Green:
Thank you!
Josh
I am working on styling a RadialGauge to set the background color as a gradient. Usually, I would extract the Template using Expression Blend, but I know this doesn't always work correctly with Telerik controls. Could you provide the full style template for the RadialGauge for customization?
Also, I am customizing a LinearGauge. I am using parts of the gauge to create a red/green indicator bar (see attached image). The problem I'm having is that the LinearRange control does not seem to allow a gradient background. Am I able to achieve this by customizing the default style template? If so, could you also provide the full style template for LinearGauge / LinearRange as well?
Here is my existing code where the "GreenGradient" and "RedGradient" have no effect, I just get a solid Red or Green:
<LinearGradientBrush x:Key="RedGradient" StartPoint="0.5, 0" EndPoint="0.5, 1"> <GradientStop Offset="0" Color="#FFCB5656" /> <GradientStop Offset="1" Color="#FFA73131" /></LinearGradientBrush><LinearGradientBrush x:Key="GreenGradient" StartPoint="0.5, 0" EndPoint="0.5, 1"> <GradientStop Offset="0" Color="#FF8ec75b" /> <GradientStop Offset="1" Color="#FF6bb32b" /></LinearGradientBrush><telerik:LinearScale Orientation="Horizontal" Left="0" Top="0" Height="18" Width="100" Min="0" Max="{Binding NumOrders}" RelativeHeight="1" HorizontalAlignment="Stretch" MajorTicks="0" ShowFirstLabel="False" ShowLastLabel="False"> <telerik:RangeList> <telerik:LinearRange Min="0" Max="{Binding NumOrdersLate}" Background="{StaticResource RedGradient}" StartWidth="1" EndWidth="1" Location="OverCenter"/> <telerik:LinearRange Min="{Binding NumOrdersLate}" Max="{Binding NumOrders}" Background="{StaticResource GreenGradient}" StartWidth="1" EndWidth="1" Location="OverCenter"/> </telerik:RangeList></telerik:LinearScale>Thank you!
Josh