Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GaugeGradientStop

    Show / Hide Table of Contents

    Class GaugeGradientStop

    Configures the properties of GaugeGradientStop. To render this GaugeGradientStop, create an instance of GaugeGradientStop class.

    Inheritance
    System.Object
    GaugeGradientStop
    Namespace: Syncfusion.SfGauge.XForms
    Assembly: Syncfusion.SfGauge.XForms.dll
    Syntax
    public class GaugeGradientStop : BindableObject

    Constructors

    GaugeGradientStop()

    Declaration
    public GaugeGradientStop()

    Fields

    ColorProperty

    Gets or sets the color property of the range. You can customize the color for ranges. This is a bindable property.

    Declaration
    public static readonly BindableProperty ColorProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ValueProperty

    Gets or sets the gradient value property of the range. you can customize the gradient stop value for range. This is a bindable property.

    Declaration
    public static readonly BindableProperty ValueProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    Properties

    Color

    Gets or sets the color of the range. You can customize the color for ranges. This is a bindable property.

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    This property takes the Color value.

    Examples

    This sample shows how to set the gradient color of the range.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	Range range = new Range();
    	GaugeGradientStop gradientStop = new GaugeGradientStop();
    	gradientStop.Color = Color.Red;
    	range.GradientColor.Add(gradientStop)
    	scale.Ranges.Add(range);
    	gauge.Scales.Add(scale);
    }

    Value

    Gets or sets the gradient value of the range. You can customize the gradient stop value for range. This is a bindable property.

    Declaration
    public double Value { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the gradientValue of the range.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	Range range = new Range();
    	GaugeGradientStop gradientStop = new GaugeGradientStop();
    	gradientStop.Value = 10;
    	range.GradientColor.Add(gradientStop)
    	scale.Ranges.Add(range);
    	gauge.Scales.Add(scale);
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved