Width inside of lineair gauge

2 posts, 0 answers
  1. b b
    b b avatar
    7 posts
    Member since:
    Jul 2009

    Posted 13 Jan 2010 Link to this post

    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)
  2. Sia
    Sia avatar
    753 posts

    Posted 15 Jan 2010 Link to this post

    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:

    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: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" />

    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.
Back to Top