menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LinearRange - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LinearRange

    Represents the linear range.

    Inheritance
    System.Object
    LinearRange
    Namespace: Syncfusion.UI.Xaml.Gauges
    Assembly: Syncfusion.SfGauge.UWP.dll
    Syntax
    public class LinearRange : Control

    Constructors

    LinearRange()

    Initializes a new instance of the LinearRange class.

    Declaration
    public LinearRange()

    Fields

    EndValueProperty

    Declaration
    public static readonly DependencyProperty EndValueProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    EndWidthProperty

    Using a DependencyProperty as the backing store for EndWidth. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty EndWidthProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    GradientStopsProperty

    Declaration
    public static readonly DependencyProperty GradientStopsProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    RangeOffsetProperty

    Declaration
    public static readonly DependencyProperty RangeOffsetProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    RangeOpacityProperty

    Using a DependencyProperty as the backing store for RangeOpacity. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty RangeOpacityProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    RangePositionFactorProperty

    Using a DependencyProperty as the backing store for RangePositionFactor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty RangePositionFactorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    RangeStrokeProperty

    Using a DependencyProperty as the backing store for RangeStroke. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty RangeStrokeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    StartValueProperty

    Declaration
    public static readonly DependencyProperty StartValueProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    StartWidthProperty

    Using a DependencyProperty as the backing store for StartWidth. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty StartWidthProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    EndValue

    Gets or sets the end value of linear range.

    Declaration
    public double EndValue { get; set; }
    Property Value
    Type
    System.Double
    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Ranges.Add(new LinearRange { StartValue = 0, EndValue = 30 }); this.Layout.Children.Add(linearGauge); } }
    }

    EndWidth

    Gets or sets the width of the ending portion of the linear range.

    Declaration
    public double EndWidth { get; set; }
    Property Value
    Type
    System.Double
    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Ranges.Add(new LinearRange { StartValue = 0, EndValue = 30, EndWidth = 10 }); this.Layout.Children.Add(linearGauge); } }
    }

    GradientStops

    Declaration
    public ObservableCollection<GaugeGradientStop> GradientStops { get; set; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<GaugeGradientStop>

    RangeOffset

    Gets or sets the offset to have space between linear range and linear scale.

    Declaration
    public double RangeOffset { get; set; }
    Property Value
    Type
    System.Double
    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Ranges.Add(new LinearRange { StartValue = 0, EndValue = 30, RangeOffset = 10 }); this.Layout.Children.Add(linearGauge); } }
    }

    RangeOpacity

    Gets or sets the opacity of the linear range.

    Declaration
    public double RangeOpacity { get; set; }
    Property Value
    Type
    System.Double
    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Ranges.Add(new LinearRange { StartValue = 0, EndValue = 30, RangeOpacity = 0.5 }); this.Layout.Children.Add(linearGauge); } }
    }

    RangePositionFactor

    Gets or sets the factor value to position Ranges based upon the scale.

    Declaration
    public double RangePositionFactor { get; set; }
    Property Value
    Type
    System.Double
    Remarks

    It shows effect only if ElementsPosition of linear scale is set as Custom.

    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); LinearRange linearRange = new LinearRange(); linearRange.Value = 25; linearRange.RangePositionFactor = 0.5; linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Ranges.Add(linearRange); this.Layout.Children.Add(linearGauge); } }
    }

    RangeStroke

    Gets or sets the color of the linear range.

    Declaration
    public Brush RangeStroke { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Media.Brush
    Examples

    using Syncfusion.UI.Xaml.Gauges; using Windows.UI; using Windows.UI.Xaml.Media; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Ranges.Add(new LinearRange { StartValue = 0, EndValue = 30, RangeStroke = new SolidColorBrush(Colors.Yellow) }); this.Layout.Children.Add(linearGauge); } }
    }

    StartValue

    Gets or sets the start value of linear range.

    Declaration
    public double StartValue { get; set; }
    Property Value
    Type
    System.Double
    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Ranges.Add(new LinearRange { StartValue = 0, EndValue = 30 }); this.Layout.Children.Add(linearGauge); } }
    }

    StartWidth

    Gets or sets the width of the starting portion of the linear range.

    Declaration
    public double StartWidth { get; set; }
    Property Value
    Type
    System.Double
    Examples

    using Syncfusion.UI.Xaml.Gauges; namespace GaugeSample { public sealed partial class LinearGauge { public LinearGauge() { InitializeComponent(); SfLinearGauge linearGauge = new SfLinearGauge(); linearGauge.MainScale = new LinearScale(); linearGauge.MainScale.Ranges.Add(new LinearRange { StartValue = 0, EndValue = 30, StartWidth = 10 }); this.Layout.Children.Add(linearGauge); } }
    }

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved