@@ -362,15 +362,14 @@ private async void PositionReset()
362
362
private void InitProgressbarAnimation ( )
363
363
{
364
364
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 ) ) ) ;
373
367
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 ;
374
373
_viewModel . ProgressBarVisibility = Visibility . Hidden ;
375
374
isProgressBarStoryboardPaused = true ;
376
375
}
0 commit comments