Beispiel #1
0
 private void ProgressBarBase_OnProgressCompleted(object sender, ProgressValueEventArgs e)
 {
     /*if (e.Progress.Equals(this.CircularProgressBar0.Maximum))
      * {
      *  // Changed the label text when progress reaches maximum value.
      *  this.Label222.Text = "Completed";
      * }*/
 }
Beispiel #2
0
 private void ProgressBarBase_OnValueChanged(object sender, ProgressValueEventArgs e)
 {
     /*if (e.Progress < 50)
      * {
      *  this.LinearProgressBar.ProgressColor = Color.Red;
      * }
      * else if (e.Progress >= 50)
      * {
      *  this.LinearProgressBar.ProgressColor = Color.Green;
      * }*/
 }
Beispiel #3
0
        private void CornerRadiusProgressBar_ValueChanged(object sender, ProgressValueEventArgs e)
        {
            if (e.Progress.Equals(100))
            {
                this.CornerRadiusProgressBar.SetProgress(0, 0, Easing.Linear);
            }

            if (e.Progress.Equals(0))
            {
                this.CornerRadiusProgressBar.Progress = 100;
            }
        }
Beispiel #4
0
        private void AngleCustomizationProgressBar_ValueChanged(object sender, ProgressValueEventArgs e)
        {
            if (e.Progress.Equals(100))
            {
                this.AngleCustomizationProgressBar.SetProgress(0, 0, Easing.Linear);
            }

            if (e.Progress.Equals(0))
            {
                this.AngleCustomizationProgressBar.Progress = 100;
            }
        }
        private void SegmentedPaddingCircularProgressBar_ValueChanged(object sender, ProgressValueEventArgs e)
        {
            if (e.Progress.Equals(75))
            {
                this.SegmentedPaddingCircularProgressBar.SetProgress(0, 0, Easing.Linear);
            }

            if (e.Progress.Equals(0))
            {
                this.SegmentedPaddingCircularProgressBar.Progress = 75;
            }
        }
        private void ThinTrackStyle_ValueChanged(object sender, ProgressValueEventArgs e)
        {
            if (e.Progress.Equals(100))
            {
                this.ThinTrackStyle.SetProgress(0, 0, Easing.Linear);
            }

            if (e.Progress.Equals(0))
            {
                this.ThinTrackStyle.Progress = 100;
            }
        }
        private void FilledIndicatorProgressBar_ValueChanged(object sender, ProgressValueEventArgs e)
        {
            if (e.Progress.Equals(100))
            {
                this.FilledIndicatorProgressBar.SetProgress(0, 0, Easing.Linear);
            }

            if (e.Progress.Equals(0))
            {
                this.FilledIndicatorProgressBar.Progress = 100;
            }
        }
        private void TrackOutsideProgressBar_ValueChanged(object sender, ProgressValueEventArgs e)
        {
            if (e.Progress.Equals(100))
            {
                this.TrackOutsideProgressBar.SetProgress(0, 0, Easing.Linear);
            }

            if (e.Progress.Equals(0))
            {
                this.TrackOutsideProgressBar.Progress = 100;
            }
        }
Beispiel #9
0
        private void RangeColorWithGradiantProgressBar_ValueChanged(object sender, ProgressValueEventArgs e)
        {
            if (e.Progress.Equals(100))
            {
                this.RangeColorWithGradientProgressBar.SetProgress(0, 0, Easing.Linear);
            }

            if (e.Progress.Equals(0))
            {
                this.RangeColorWithGradientProgressBar.Progress = 100;
            }
        }
Beispiel #10
0
        private void ProgressBar_ValueChanged(object sender, ProgressValueEventArgs e)
        {
            SfLinearProgressBar progressbar = sender as SfLinearProgressBar;

            if (e.Progress.Equals(100))
            {
                progressbar.Progress          = 0;
                progressbar.AnimationDuration = 1;
            }

            if (e.Progress.Equals(0))
            {
                progressbar.AnimationDuration = 2000;
                progressbar.Progress          = 100;
            }
        }
Beispiel #11
0
        private void ProgressBar_ValueChanged75(object sender, ProgressValueEventArgs e)
        {
            SfCircularProgressBar progressbar = sender as SfCircularProgressBar;

            if (e.Progress.Equals(75))
            {
                progressbar.AnimationDuration = 1;
                progressbar.Progress          = 0;
            }

            if (e.Progress.Equals(0))
            {
                progressbar.AnimationDuration = 2000;
                progressbar.Progress          = 75;
            }
        }
        private async void ProgressBar_ValueChanged100(object sender, ProgressValueEventArgs e)
        {
            SfCircularProgressBar progressbar = sender as SfCircularProgressBar;

            if (e.Progress.Equals(100))
            {
                progressbar.AnimationDuration = 0;
                progressbar.Progress          = 0;
            }

            if (e.Progress.Equals(0))
            {
                progressbar.AnimationDuration = 10000;
                await Task.Delay(100);

                progressbar.Progress = 100;
            }
        }
        private async void SecondaryProgressProgressBar_ValueChanged(object sender, ProgressValueEventArgs e)
        {
            if (e.Progress.Equals(100))
            {
                this.SecondaryProgressProgressBar.SecondaryAnimationDuration = 0;
                await Task.Delay(100);

                this.SecondaryProgressProgressBar.SecondaryProgress = 0;
                this.SecondaryProgressProgressBar.SetProgress(0, 0, Easing.Linear);
            }

            if (e.Progress.Equals(0))
            {
                this.SecondaryProgressProgressBar.SecondaryAnimationDuration = 1000;
                await Task.Delay(100);

                this.SecondaryProgressProgressBar.SecondaryProgress = 100;
                this.SecondaryProgressProgressBar.Progress          = 100;
            }
        }
 private void updateProgressText(object sender, ProgressValueEventArgs e)
 {
     textProgress.Text = e.currentValue + "/" + e.totalValue;
      textProgress.Invalidate();
 }