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

Width inside of lineair gauge

1 Answer 23 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
b b
Top achievements
Rank 1
b b asked on 13 Jan 2010, 10:16 PM
Is it possible to change the width of the intern build ( see picture) ? I have found width for outside, but inside?

Second question : can the marker be limited to a certain area? (like the middle color)

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 15 Jan 2010, 11:58 AM
Hello Mr Baekelant,

If you need to change the width of the LinearBar, you can achieve that by setting different StartWidth and EndWidth to it. The default value depends on the theme you use. You can try setting the above properties to 0.5 and see if this is appropriate value for your case.

For more details see the following example:
http://demos.telerik.com/silverlight/#Gauge/Customization/LinearScaleIndicators

Regarding your second question concerning the marker - its position depends on its Value. If you want to limit it to specific part (color) of your linear bar, you need to give it only values in that specific range.

Below is the XAML code for LinearBar and Marker:

<gauge:IndicatorList>
    <gauge:LinearBar x:Name="linearBar"
            IsAnimated="true" Value="50" StartWidth="0.5" EndWidth="0.5" />
    <gauge:Marker Value="50" RelativeWidth="0.05" RelativeHeight="0.05" Name="marker2" />
</gauge:IndicatorList>

Best wishes,
Sia Aleksieva
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Gauge
Asked by
b b
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or