WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfLinearGauge - WPF API Reference | Syncfusion SfLinearGauge class, and set required properties. ">

    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 Description
    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 Description
    System.Windows.DependencyProperty

    Properties

    GaugeSize

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

    MainScale

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

    Orientation

    Gets or sets the orientation of the linear gauge.

    Declaration
    public Orientation Orientation { get; set; }
    Property Value
    Type Description
    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 Description
    System.Windows.Size

    Implements

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