@@ -362,15 +362,14 @@ private async void PositionReset()
362362 private void InitProgressbarAnimation ( )
363363 {
364364
365- //var da = new DoubleAnimation(ProgressBar.X2, ActualWidth + 150,
366- // new Duration(new TimeSpan(0, 0, 0, 0, 1600)));
367- //var da1 = new DoubleAnimation(ProgressBar.X1, ActualWidth + 50, new Duration(new TimeSpan(0, 0, 0, 0, 1600)));
368- //Storyboard.SetTargetProperty(da, new PropertyPath("(Line.X2)"));
369- //Storyboard.SetTargetProperty(da1, new PropertyPath("(Line.X1)"));
370- //_progressBarStoryboard.Children.Add(da);
371- //_progressBarStoryboard.Children.Add(da1);
372- _progressBarStoryboard . RepeatBehavior = RepeatBehavior . Forever ;
365+ var da = new DoubleAnimation ( ProgressBar . X2 , ActualWidth + 100 , new Duration ( new TimeSpan ( 0 , 0 , 0 , 0 , 1600 ) ) ) ;
366+ var da1 = new DoubleAnimation ( ProgressBar . X1 , ActualWidth + 0 , new Duration ( new TimeSpan ( 0 , 0 , 0 , 0 , 1600 ) ) ) ;
373367
368+ Storyboard . SetTargetProperty ( da , new PropertyPath ( "(Line.X2)" ) ) ;
369+ Storyboard . SetTargetProperty ( da1 , new PropertyPath ( "(Line.X1)" ) ) ;
370+ _progressBarStoryboard . Children . Add ( da ) ;
371+ _progressBarStoryboard . Children . Add ( da1 ) ;
372+ _progressBarStoryboard . RepeatBehavior = RepeatBehavior . Forever ;
374373 _viewModel . ProgressBarVisibility = Visibility . Hidden ;
375374 isProgressBarStoryboardPaused = true ;
376375 }
0 commit comments