コード例 #1
0
 public void Next()
 {
     StepIndex++;
     if (StepIndex >= UniformGridMain.Children.Count)
     {
         StepIndex = UniformGridMain.Children.Count - 1;
         return;
     }
     if (UniformGridMain.Children[StepIndex - 1] is StepItem stepItemFinished)
     {
         stepItemFinished.Status = true;
     }
     if (UniformGridMain.Children[StepIndex] is StepItem stepItemSelected)
     {
         stepItemSelected.Status = false;
     }
     ProgressBarBack.BeginAnimation(RangeBase.ValueProperty, AnimationHelper.CreateAnimation(StepIndex));
 }
コード例 #2
0
 public void Prev()
 {
     StepIndex--;
     if (StepIndex < 0)
     {
         StepIndex = 0;
         return;
     }
     if (UniformGridMain.Children[StepIndex + 1] is StepItem stepItemFinished)
     {
         stepItemFinished.Status = null;
     }
     if (UniformGridMain.Children[StepIndex] is StepItem stepItemSelected)
     {
         stepItemSelected.Status = false;
     }
     ProgressBarBack.BeginAnimation(RangeBase.ValueProperty, AnimationHelper.CreateAnimation(StepIndex));
 }