Vertical Linear Gauge width

3 posts, 0 answers
  1. Marc
    Marc avatar
    15 posts
    Member since:
    Oct 2007

    Posted 18 Apr 2013 Link to this post

    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. Marc
    Marc avatar
    15 posts
    Member since:
    Oct 2007

    Posted 22 Apr 2013 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 Apr 2013 Link to this post

    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.

Back to Top