Class SfLinearGauge
Represents the linear gauge.
Inheritance
System.Object
SfLinearGauge
Implements
System.IDisposable
Assembly: Syncfusion.SfGauge.UWP.dll
Syntax
public class SfLinearGauge : Control, IDisposable
Constructors
SfLinearGauge()
Declaration
Fields
AnnotationsProperty
Declaration
public static readonly DependencyProperty AnnotationsProperty
Field Value
Type |
Windows.UI.Xaml.DependencyProperty |
GaugeSizeProperty
Declaration
public static readonly DependencyProperty GaugeSizeProperty
Field Value
Type |
Windows.UI.Xaml.DependencyProperty |
Declaration
public static readonly DependencyProperty HeaderFontFamilyProperty
Field Value
Type |
Windows.UI.Xaml.DependencyProperty |
Declaration
public static readonly DependencyProperty HeaderFontSizeProperty
Field Value
Type |
Windows.UI.Xaml.DependencyProperty |
Declaration
public static readonly DependencyProperty HeaderFontStyleProperty
Field Value
Type |
Windows.UI.Xaml.DependencyProperty |
Declaration
public static readonly DependencyProperty HeaderFontWeightProperty
Field Value
Type |
Windows.UI.Xaml.DependencyProperty |
Declaration
public static readonly DependencyProperty HeaderForegroundProperty
Field Value
Type |
Windows.UI.Xaml.DependencyProperty |
Declaration
public static readonly DependencyProperty HeaderOffsetProperty
Field Value
Type |
Windows.UI.Xaml.DependencyProperty |
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
Type |
Windows.UI.Xaml.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 |
Windows.UI.Xaml.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 |
Windows.UI.Xaml.DependencyProperty |
Properties
Annotations
Declaration
public LinearAnnotationCollection Annotations { get; set; }
Property Value
GaugeSize
Declaration
public Size GaugeSize { get; set; }
Property Value
Type |
Windows.Foundation.Size |
Gets or sets header for linear gauge
Declaration
public string Header { get; set; }
Property Value
Gets or sets a value for header font family
Declaration
public FontFamily HeaderFontFamily { get; set; }
Property Value
Type |
Windows.UI.Xaml.Media.FontFamily |
Gets or sets a value for header font size
Declaration
public double HeaderFontSize { get; set; }
Property Value
Gets or sets the value for header font style
Declaration
public FontStyle HeaderFontStyle { get; set; }
Property Value
Type |
Windows.UI.Text.FontStyle |
Gets or sets a value for header font weight
Declaration
public FontWeight HeaderFontWeight { get; set; }
Property Value
Type |
Windows.UI.Text.FontWeight |
Gets or sets a value for header foreground
Declaration
public Brush HeaderForeground { get; set; }
Property Value
Type |
Windows.UI.Xaml.Media.Brush |
Gets or sets a value for header offset
Declaration
public Point HeaderOffset { get; set; }
Property Value
Type |
Windows.Foundation.Point |
MainScale
Gets or sets the main scale of the linear gauge.
Declaration
public LinearScale MainScale { get; set; }
Property Value
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 |
Windows.UI.Xaml.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
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type |
Name |
Description |
Windows.Foundation.Size |
availableSize |
|
Returns
Type |
Windows.Foundation.Size |
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
Implements
System.IDisposable
Extension Methods