Marker showing up behind Gauge Range

2 posts, 0 answers
  1. Robert
    Robert avatar
    3 posts
    Member since:
    Dec 2015

    Posted 10 Dec 2015 Link to this post

    Having a problem where my marker is showing up behind the background on my gauge range. Here is my code. 


      <telerik:VerticalLinearScale IsInteractive="False" Max="100" Min="0" Foreground="Black" >
                            <telerik:GaugeRange Min="0" Max="80" Background="Green"></telerik:GaugeRange>
                            <telerik:GaugeRange Min="80" Max="100" Background="Red"></telerik:GaugeRange>
                            <telerik:LinearScaleMarker  x:Name="indicator" telerik:LinearScale.RotateForVertical="True" telerik:ScaleObject.Location="OverCenter"  Value="{Binding Path=myEngine.PercentLoaded}" />


    Everything works fine, its just that the marker is behind the gauge range backgrounds.

  2. Ivan
    Ivan avatar
    44 posts

    Posted 11 Dec 2015 Link to this post

    Hi Robert,

    To achieve your goal you can put the LinearScaleMarker inside the Indicators collection of the VerticalLinearScale control. Here is you code modified, so the marker is on top:
    <telerik:VerticalLinearScale IsInteractive="False" Max="100" Min="0"
                                 Foreground="Black" >
     <telerik:GaugeRange Min="0" Max="80" Background="Green" />
     <telerik:GaugeRange Min="80" Max="100" Background="Red" />
        <telerik:LinearScaleMarker x:Name="indicator"
          Value="25" />
    You can also take a look at the Creating Linear Gauge SDK demo.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top