This is a migrated thread and some comments may be shown as answers.

Indicator on the linear gauge doesn't pick the IndicatorBackground colour.

4 Answers 62 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Vitalij
Top achievements
Rank 1
Vitalij asked on 22 Feb 2011, 11:56 AM
I have the following code:

<
Gauges:RangeList>
    <Gauges:RadialRange Min="0" Max="50"
                                        StartWidth="0.02" EndWidth="0.03"
                                         Location="Inside"
                                         Background="#7F579132"
                                         BorderBrush="{x:Null}"
                                         IndicatorBackground="#FF4AB408" Offset="-0.07"/>
        <Gauges:RadialRange Min="50" Max="75"
                                          StartWidth="0.03" EndWidth="0.04"
                                          Location="Inside"
                                          Background="#7F9FAB32"
                                          BorderBrush="{x:Null}"
                                          IndicatorBackground="#FFF7E40D" Offset="-0.07"/>
     <Gauges:RadialRange Min="75" Max="100"
                                            StartWidth="0.04" EndWidth="0.05"
                                            Location="Inside"
                                            Background="#7F973C3C"
                                            BorderBrush="{x:Null}"
                                            IndicatorBackground="Red" Offset="-0.07" LabelForeground="{x:Null}"/>
                                                          
</Gauges:RangeList>
<Gauges:IndicatorList Height="247" Width="247">
    <Gauges:StateIndicator Left="0.8" Value="{TemplateBinding Value}" UseRangeColor="True"/>

And the State Indicator shows the colour of the range rather than IndicatorBackground.
What is the reason for that?

4 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 24 Feb 2011, 11:24 AM
Hello Vitalij,

There is a  UseRangeColor property, which in your case is set to be true. That is why the StateIndicator gets the colors from the range, but not the default one. Here you can see more examples how you can use it.

Greetings,
Sia
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Vitalij
Top achievements
Rank 1
answered on 24 Feb 2011, 04:04 PM
If I set UseRangeColour it still uses the colour of the range, rather thanIndicatorBackground.
When setting UserRangeColour on other control, it works properly, but not on the the Indicator.
0
Accepted
Andrey
Telerik team
answered on 01 Mar 2011, 01:53 PM
Hello Vitalij,

I'm sorry for misunderstanding. The StateIndicator differs from other indicators. It always usews a Background color of the range instead of "IndicatorBackground". It is not a bug, it works as designed.

Best wishes,
Andrey Murzov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Vitalij
Top achievements
Rank 1
answered on 01 Mar 2011, 02:30 PM
Thank you, this is helpful. I have used a work around, but this would be a nice feature to have, as currently does not use IndicatorBackground property at all.
Tags
Gauges
Asked by
Vitalij
Top achievements
Rank 1
Answers by
Sia
Telerik team
Vitalij
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or