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