MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ProgressGradientStop

    Show / Hide Table of Contents

    Class ProgressGradientStop

    Represents ProgressGradientStop class.

    Inheritance
    System.Object
    ProgressGradientStop
    Namespace: Syncfusion.Maui.ProgressBar
    Assembly: Syncfusion.Maui.ProgressBar.dll
    Syntax
    public class ProgressGradientStop : BindableObject
    Examples
    • XAML
    • C#

    Snippet for SfLinearProgressBar

    <progressBar:SfLinearProgressBar Progress="75">
        <progressBar:SfLinearProgressBar.GradientStops>
               <progressBar:ProgressGradientStop Color="Yellow" Value="30"/>
               <progressBar:ProgressGradientStop Color="Green" Value="60"/>
        </progressBar:SfLinearProgressBar.GradientStops>
    </progressBar:SfLinearProgressBar>

    Snippet for SfCircularProgressBar

    <progressBar:SfCircularProgressBar Progress="75">
        <progressBar:SfCircularProgressBar.GradientStops>
               <progressBar:ProgressGradientStop Color="Yellow" Value="30"/>
               <progressBar:ProgressGradientStop Color="Green" Value="60"/>
        </progressBar:SfCircularProgressBar.GradientStops>                              
    </progressBar:SfCircularProgressBar>

    Snippet for SfLinearProgressBar

    SfLinearProgressBar progressBar = new SfLinearProgressBar();
    progressBar.Progress = 75;
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Yellow, Value = 30 });
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Green, Value = 60 });
    this.Content = progressBar;

    Snippet for SfCircularProgressBar

    SfCircularProgressBar progressBar = new SfCircularProgressBar();
    progressBar.Progress = 75;
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Yellow, Value = 30 });
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Green, Value = 60 });
    this.Content = progressBar;

    Constructors

    ProgressGradientStop()

    Declaration
    public ProgressGradientStop()

    Fields

    ColorProperty

    Identifies the Color bindable property.

    Declaration
    public static readonly BindableProperty ColorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Color bindable property.

    ValueProperty

    Identifies the Value bindable property.

    Declaration
    public static readonly BindableProperty ValueProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Value bindable property.

    Properties

    Color

    Gets or sets the color that describes the gradient color value.

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Graphics.Color

    The default color is transparent.

    Examples
    • XAML
    • C#

    Snippet for SfLinearProgressBar

    <progressBar:SfLinearProgressBar Progress="75">
        <progressBar:SfLinearProgressBar.GradientStops>
               <progressBar:ProgressGradientStop Color="Yellow" Value="30"/>
               <progressBar:ProgressGradientStop Color="Green" Value="60"/>
        </progressBar:SfLinearProgressBar.GradientStops>
    </progressBar:SfLinearProgressBar>

    Snippet for SfCircularProgressBar

    <progressBar:SfCircularProgressBar Progress="75">
        <progressBar:SfCircularProgressBar.GradientStops>
               <progressBar:ProgressGradientStop Color="Yellow" Value="30"/>
               <progressBar:ProgressGradientStop Color="Green" Value="60"/>
        </progressBar:SfCircularProgressBar.GradientStops>                              
    </progressBar:SfCircularProgressBar>

    Snippet for SfLinearProgressBar

    SfLinearProgressBar progressBar = new SfLinearProgressBar();
    progressBar.Progress = 75;
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Yellow, Value = 30 });
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Green, Value = 60 });
    this.Content = progressBar;

    Snippet for SfCircularProgressBar

    SfCircularProgressBar progressBar = new SfCircularProgressBar();
    progressBar.Progress = 75;
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Yellow, Value = 30 });
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Green, Value = 60 });
    this.Content = progressBar;

    Value

    Gets or sets the value that describes the gradient value.

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

    The default value is 0.

    Examples
    • XAML
    • C#

    Snippet for SfLinearProgressBar

    <progressBar:SfLinearProgressBar Progress="75">
        <progressBar:SfLinearProgressBar.GradientStops>
               <progressBar:ProgressGradientStop Color="Yellow" Value="30"/>
               <progressBar:ProgressGradientStop Color="Green" Value="60"/>
        </progressBar:SfLinearProgressBar.GradientStops>
    </progressBar:SfLinearProgressBar>

    Snippet for SfCircularProgressBar

    <progressBar:SfCircularProgressBar Progress="75">
        <progressBar:SfCircularProgressBar.GradientStops>
               <progressBar:ProgressGradientStop Color="Yellow" Value="30"/>
               <progressBar:ProgressGradientStop Color="Green" Value="60"/>
        </progressBar:SfCircularProgressBar.GradientStops>                              
    </progressBar:SfCircularProgressBar>

    Snippet for SfLinearProgressBar

    SfLinearProgressBar progressBar = new SfLinearProgressBar();
    progressBar.Progress = 75;
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Yellow, Value = 30 });
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Green, Value = 60 });
    this.Content = progressBar;

    Snippet for SfCircularProgressBar

    SfCircularProgressBar progressBar = new SfCircularProgressBar();
    progressBar.Progress = 75;
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Yellow, Value = 30 });
    progressBar.GradientStops.Add(new ProgressGradientStop { Color = Colors.Green, Value = 60 });
    this.Content = progressBar;
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved