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

RadHorizontalLinearGauge Extra Space

1 Answer 52 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Kirk
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:HorizontalLinearScale.Indicators>
            <telerik:BarIndicator Value="0" StrokeThickness="0" StartWidth="0.06" IsAnimated="True"/>
        </telerik:HorizontalLinearScale.Indicators>
        <telerik:HorizontalLinearScale.CustomItems>
            <Border telerik:ScaleObject.Value="50" Style="{StaticResource CustomScaleBorder}" />
        </telerik:HorizontalLinearScale.CustomItems>
    </telerik:HorizontalLinearScale>
</telerik:RadHorizontalLinearGauge>
</Border>

1 Answer, 1 is accepted

Sort by
0
Andrey
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.

Regards,
Andrey Murzov
Telerik
 
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.
 
Tags
Gauge
Asked by
Kirk
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or