LYunF

            DispatcherTimer timer = new DispatcherTimer();
            timer.Interval = TimeSpan.FromMilliseconds(interval);
            timer.Tick += (s, e) =>
            {
                LayoutRoot.Background = new ImageBrush()
                {
                    ImageSource = new BitmapImage(new Uri("Animation/Loading/0" + imageIndex + ".png", UriKind.Relative)),AlignmentX= AlignmentX.Center,AlignmentY = AlignmentY.Center
                };
                imageIndex = imageIndex < 8 ? imageIndex + 1 : 1;
            };
            timer.Start();

分类:

技术点:

相关文章:

  • 2021-11-11
  • 2021-12-15
  • 2021-12-23
  • 2022-01-02
  • 2021-11-03
  • 2021-12-04
  • 2021-12-10
  • 2022-01-02
猜你喜欢
  • 2022-01-02
  • 2021-09-02
  • 2021-12-23
  • 2021-12-25
  • 2021-12-23
  • 2021-09-02
相关资源
相似解决方案