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

RadHorizontalLinearGauge Extra Space

1 Answer 46 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Kirk asked on 09 Jun 2014, 06:43 PM
I'm working with the RadHorizontalLinearGuage and there is some extra space at the bottom I cant seem to get rid of.

Here is my xaml. I put the border around it so I could show the space I am talking about.
<Border BorderBrush="Red" BorderThickness="2" HorizontalAlignment="Left">
<telerik:RadHorizontalLinearGauge HorizontalAlignment="Left" Height="100" Width="325" Margin="2" VerticalAlignment="Top">
    <telerik:HorizontalLinearScale Min="0" Max="100"  MajorTicks="1" MiddleTicks="1" MinorTicks="1" LabelTemplate="{StaticResource EmptyLabel}" RelativeX="0" RelativeY="0.2" />
    <telerik:HorizontalLinearScale Min="0" Max="100" LabelLocation="Inside" MajorTickLocation="Inside" MiddleTickLocation="Inside" MinorTickLocation="Inside" RelativeX="0" RelativeY="0.2" >
            <telerik:BarIndicator Value="0" StrokeThickness="0" StartWidth="0.06" IsAnimated="True"/>
            <Border telerik:ScaleObject.Value="50" Style="{StaticResource CustomScaleBorder}" />

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 10 Jun 2014, 12:07 PM
Hi Kirk,

The gauge control uses relative measurements for displaying scales inside the container like the RadHorizontalLinearGuage. You can specify the RelativeX, RelativeY, RelativeHeight and RelativeWidth properties of the LinearScale for configuring the placement and size of the scales.
I would recommend you to take a look at the Linear Scale article in our online documentation.

Andrey Murzov
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.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question