Text is not centered.

2 posts, 0 answers
  1. MB
    MB avatar
    3 posts
    Member since:
    Jun 2017

    Posted 16 Jun 2017 Link to this post

       <telerikGauges:GaugeNeedleIndicator Offset="30" Value="{Binding Kpi.Production.Tone}" />
       <telerikGauges:GaugeTextIndicator HorizontalTextPlacement="Center" VerticalTextPlacement="Top" FontSize="20" FontAttributes="Bold" FontFamily="Calibri" TextColor="Navy" Text="{Binding Kpi.OEEPercent, StringFormat='OEE: %{0:N0}'}"/>


    Is there a solution?


  2. Stefan Nenchev
    Stefan Nenchev avatar
    607 posts

    Posted 19 Jun 2017 Link to this post

    Hi Mikrosel,

    I believe you are using the wrong element to achieve the behavior you are aiming at. The purpose of all indicators available for the RadGauge is to point where the value lies within the gauge itself. For example, if you set a value to the GaugeTextIndicator, you will notice that the GaugeTextIndicator's position will change so that it represent the exact place where the value is within the gauge. On the other hand, I believe you would like to simply add an element that shows the exact value and center this element in the bottom middle. You can consider modifying your structure so that a label(or another element of your choice) is rendered at a specific position on top of the gauge.

    Have a great week.

    Stefan Nenchev
    Progress Telerik
    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