Articles in this section
Category / Section

How to apply the gradient to a range in the .NET MAUI Linear Gauge (SfLinearGauge)?

2 mins read

The Syncfusion® .NET MAUI Linear Gauge (SfLinearGauge) supports customizing range appearances with gradient effects, allowing you to create visually appealing gauges with smooth color transitions. This guide demonstrates how to apply gradient effects to ranges in the Linear Gauge control.

XAML:

The GradientStops property of a range can be used to apply the gradient. The following demonstration explains how to apply a gradient to the range.

<gauge:SfLinearGauge>
   <gauge:SfLinearGauge.Ranges>
       <gauge:LinearRange StartWidth="50">
           <gauge:LinearRange.GradientStops>
               <gauge:GaugeGradientStop Value="0" Color="Green"/>
               <gauge:GaugeGradientStop Value="100" Color="Blue"/>
           </gauge:LinearRange.GradientStops>
       </gauge:LinearRange>
   </gauge:SfLinearGauge.Ranges>
</gauge:SfLinearGauge>

Output:

Range_Gradient.png

Conclusion:

I hope you enjoyed learning how to apply the gradient to a range in the .NET MAUI Linear Gauge (SfLinearGauge).

Refer to our .NET MAUI Linear Gauge feature tour page to learn about its other groundbreaking feature representations. You can also explore our .NET MAUI Linear Gauge documentation to understand how to present and manipulate data.

For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Linear Gauge and other .NET MAUI components.

Please let us know in the comment section if you have any queries or require clarification. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied