Articles in this section
Category / Section

How to handle the StatusChanged event in the StepProgressBar

1 min read

This KB article explains how to handle the status changed event in the Step Progress Bar.

 

Step 1: 

Create a SfStepProgressBar sample with all the necessary assemblies. Refer to this Getting started documentation to create a simple SfStepProgressBar sample and configure it.

 

Step 2:

Use the StatusChanged event to track the status changes in the SfStepProgressBar.

 

XAML

<progressBar:SfStepProgressBar HorizontalOptions="Center"      StatusChanged="StepProgressBar_StatusChanged" x:Name="StepProgressBar" VerticalOptions="Center" Orientation="Vertical"/>
           

 

Step 3:

Attach the method for status changed event to track the status changes.

 

C#

   private void StepProgressBar_StatusChanged (object sender, StatusChangedEventArgs e)
        {
            StepView step = e.Item as StepView;
            StepStatus oldStatus = e.OldStatus;
            StepStatus newStatus = e.NewStatus;
            int index = StepProgressBar.Children.IndexOf(step);
        }

 

The sample that explains how to track the status changes using the StatusChanged event in the SfStepProgressBar can be downloaded here.

 

If you have any questions or require clarification about this support, please let us know in the following comments section. You can also contact us through our support forum or Direct Trac. We will be 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