Ruler that displays units in inches/ mm

3 posts, 1 answers
  1. Rajkumar
    Rajkumar avatar
    9 posts
    Member since:
    May 2014

    Posted 27 May 2014 Link to this post

    Is there a way to customize the horizontal and vertical ruler to display units in inches or mm ?
  2. Answer
    Milena avatar
    193 posts

    Posted 28 May 2014 Link to this post

    Hello Rajkumar,

    The MeasurementUnit  property of the RadDiagramRuler exposes 3 mesure types: Dip, Cm and Inch.
    So if you want to display units in inches, you can set: 

    <telerik:RadDiagramRuler Diagram="{Binding ElementName=xDiagram}"  MeasurementUnit="Inch"/>
    More about the feature you can read in our help article - Ruler.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft R3 2016 release webinar banner
  4. Rajkumar
    Rajkumar avatar
    9 posts
    Member since:
    May 2014

    Posted 28 May 2014 in reply to Milena Link to this post

    Hi Milena,

    Got it ! I used the following code

     <Extensions:RadDiagramRuler Diagram="{Binding ElementName=diag}" Grid.Column="1" Placement="Top" MeasurementUnit="Cm" >
                                <Extensions:DiagramScaleItemDefinition Interval="0.1" Type="XSmallTick" />
                                <Extensions:DiagramScaleItemDefinition Interval="0.2" Type="SmallTick" />
                                <Extensions:DiagramScaleItemDefinition Interval="0.5" Type="MediumTick" />
                                <Extensions:DiagramScaleItemDefinition Interval="1" Type="LargeTick" />
                                <Extensions:DiagramScaleItemDefinition Interval="1" Type="Label" />

    in my xaml and it worked.
Back to Top