Class GaugeGradientStop
GaugeGradientStop is a class that used to specify the gradient color and color transition stop value.
Inheritance
System.Object
GaugeGradientStop
Namespace: Syncfusion.UI.Xaml.Gauges
Assembly: Syncfusion.SfGauge.WPF.dll
Syntax
public class GaugeGradientStop : DependencyObject
Constructors
GaugeGradientStop()
Initialize a new instance of the GaugeGradientStop class.
Declaration
public GaugeGradientStop()
Fields
ColorProperty
Gets or sets the color of the gradient stop to circular range. This is a bindable property.
Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ValueProperty
Gets or sets the value of the gradient stop to circular range. This is a bindable property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Color
Gets or sets the color that describes the gradient color value of the CircularRange.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color | Color |
Examples
using Syncfusion.UI.Xaml.Gauges;
using System;
using System.Collections.Generi c;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GaugeWinRTSamples
{
public sealed partial class GaugePosition :SampleView
{
public GaugePosition()
{
InitializeComponent();
SfCircularGauge gauge = new SfCircularGauge();
CircularRange range1 = new CircularRange();
range1.StartValue = 0;
range1.EndValue = 40;
GaugeGradientStop gaugeGradientStop = new GaugeGradientStop();
gaugeGradientStop.Color = Colors.Red;
gaugeGradientStop.Value = 25;
range1.GradientStops.Add(gaugeGradientStop);
GaugeGradientStop gaugeGradientStop1 = new GaugeGradientStop();
gaugeGradientStop1.Color = Colors.GreenYellow;
gaugeGradientStop1.Value = 30;
range1.GradientStops.Add(gaugeGradientStop1);
}
}
Value
Gets or sets the value that describes the gradient value of the CircularRange.
Declaration
public double Value { get; set; }
Property Value
Type | Description |
---|---|
System.Double | double |
Examples
using Syncfusion.UI.Xaml.Gauges;
using System;
using System.Collections.Generi c;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GaugeWinRTSamples
{
public sealed partial class GaugePosition :SampleView
{
public GaugePosition()
{
InitializeComponent();
SfCircularGauge gauge = new SfCircularGauge();
CircularRange range1 = new CircularRange();
range1.StartValue = 0;
range1.EndValue = 40;
GaugeGradientStop gaugeGradientStop = new GaugeGradientStop();
gaugeGradientStop.Color = Colors.Red;
gaugeGradientStop.Value = 25;
range1.GradientStops.Add(gaugeGradientStop);
GaugeGradientStop gaugeGradientStop1 = new GaugeGradientStop();
gaugeGradientStop1.Color = Colors.GreenYellow;
gaugeGradientStop1.Value = 30;
range1.GradientStops.Add(gaugeGradientStop1);
}
}