Events in .NET MAUI Digital Gauge

12 Jul 20261 minute to read

The SfDigitalGauge control provides events that notify when the text value changes, allowing you to perform custom actions.

NOTE

Prerequisite: Ensure that the required NuGet package is installed, the necessary namespaces are imported, and the SfDigitalGauge control is properly configured in your application. For detailed setup and configuration instructions, refer to the Getting Started guide.

TextChanged

The TextChanged event is triggered when the text is changed. The associated argument contains the following properties:

<gauge:SfDigitalGauge Text = "syncfusion"
                      TextChanged = "SfDigitalGauge_TextChanged"
                      StrokeWidth = "3"
                      CharacterSpacing = "23"
                      CharacterHeight = "90"
                      CharacterWidth = "70"
                      CharacterType = "EightCrossEightDotMatrix"
                      CharacterStroke = "Orange"/>
private void SfDigitalGauge_TextChanged(object sender, Syncfusion.Maui.Gauges.DigitalGaugeTextChangedEventArgs e)
{
    // Handle event action
}