menu

WPF

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

    Show / Hide Table of Contents

    Class SfLinearGauge

    Represents the linear gauge. To render this gauge, create an instance of the SfLinearGauge class, and set required properties.

    Inheritance
    System.Object
    SfLinearGauge
    Implements
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Gauges
    Assembly: Syncfusion.SfGauge.WPF.dll
    Syntax
    public class SfLinearGauge : Control, IDisposable

    Constructors

    SfLinearGauge()

    Initializes a new instance of the SfLinearGauge class.

    Declaration
    public SfLinearGauge()

    Fields

    GaugeSizeProperty

    Declaration
    public static readonly DependencyProperty GaugeSizeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MainScaleProperty

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

    Declaration
    public static readonly DependencyProperty MainScaleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    OrientationProperty

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

    Declaration
    public static readonly DependencyProperty OrientationProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    GaugeSize

    Declaration
    public Size GaugeSize { get; set; }
    Property Value
    Type
    System.Windows.Size

    MainScale

    Gets or sets the main scale of the linear gauge.

    Declaration
    public LinearScale MainScale { get; set; }
    Property Value
    Type
    LinearScale
    Examples

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

    Orientation

    Gets or sets the orientation of the linear gauge.

    Declaration
    public Orientation Orientation { get; set; }
    Property Value
    Type
    System.Windows.Controls.Orientation
    Examples

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

    Methods

    Dispose()

    Declaration
    public void Dispose()

    MeasureOverride(Size)

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize
    Returns
    Type
    System.Windows.Size

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved