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

Vertical Linear Gauge width

2 Answers 188 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 18 Apr 2013, 08:47 PM
I'd like to to remove all of the outside margin/padding around the gauge and then make the width of the bar indicator wider.

I've attached images to demonstrate my current (default) look and my desired look.

Thank you

2 Answers, 1 is accepted

Sort by
0
Marc
Top achievements
Rank 1
answered on 22 Apr 2013, 08:22 PM
I figured it out. Had to use a variety of things to get it to work.

<telerik:RadVerticalLinearGauge Width="360" Height="220" Margin="0">
      <telerik:VerticalLinearScale Min="0" Max="200" StartWidth="0" EndWidth="0"
                            RelativeX="0.2" RelativeY="0" RelativeWidth="1" RelativeHeight="1" Margin="0,10,0,10" FontSize="18">
      <telerik:VerticalLinearScale.Indicators>
              <telerik:BarIndicator Margin="0,0,0,0" StartWidth="0.8" EndWidth="0.8" Value="155" telerik:ScaleObject.Location="Inside" />
        </telerik:VerticalLinearScale.Indicators>                     
         </telerik:VerticalLinearScale>
</telerik:RadVerticalLinearGauge>

I'd appreciate anyone showing me how to do it easier.
0
Andrey
Telerik team
answered on 23 Apr 2013, 07:33 AM
Hi Marc,

I would recommend you to take a look into the following topics in our online help:

1. http://www.telerik.com/help/wpf/radgauge-features-linear-and-radial-scales-basics.html - it describes gauge scale basics. You can find an information about how the width of the scale bar is controlled there.

2. http://www.telerik.com/help/wpf/radgauge-features-indicators-bar-indicators-basics.html - it describes bar indicator features. You can find an information about how the width of the bar indicator is controlled there.


All the best,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Gauges
Asked by
Marc
Top achievements
Rank 1
Answers by
Marc
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or