private void LabelGo()
 {
     Task.Run(() =>
     {
         Thread.Sleep(500);
         LabelShow();
         Dispatcher.Invoke(() =>
         {
             var daV = new DoubleAnimation(0, 606, new Duration(TimeSpan.FromSeconds(1)));
             InitLabel.BeginAnimation(WidthProperty, daV);
         });
         Thread.Sleep(1000);
         WindowShow();
         Dispatcher.Invoke(() =>
         {
             var daV = new DoubleAnimation(1, 0, new Duration(TimeSpan.FromSeconds(1)));
             InitLabel.BeginAnimation(OpacityProperty, daV);
         });
         Thread.Sleep(1000);
         Dispatcher.Invoke(() =>
         {
             InitLabel.Margin     = new Thickness(0, 90, 0, 0);
             InitLabel.Background = Brushes.Black;
             var daV1             = new DoubleAnimation(InitLabel.Width, Form.Width, new Duration(TimeSpan.FromMilliseconds(1)));
             InitLabel.BeginAnimation(WidthProperty, daV1);
             var daV2 = new DoubleAnimation(0, 1, new Duration(TimeSpan.FromSeconds(1)));
             InitLabel.BeginAnimation(OpacityProperty, daV2);
         });
     });
 }
        private void LabelGo()
        {
            Dispatcher.BeginInvoke(new Action(() =>
            {
                var daV = new DoubleAnimation(0, 1, new Duration(TimeSpan.FromSeconds(1)));
                InitLabel.BeginAnimation(OpacityProperty, daV);
            }));
            Dispatcher.BeginInvoke(new Action(() =>
            {
                var daV        = new DoubleAnimation(0, 606, new Duration(TimeSpan.FromSeconds(1)));
                daV.Completed += (sender, args) => WindowShow();
                InitLabel.BeginAnimation(WidthProperty, daV);
            }));

            Dispatcher.BeginInvoke(new Action(() =>
            {
                var daV        = new DoubleAnimation(1, 0, new Duration(TimeSpan.FromSeconds(1)));
                daV.Completed += (sender, args) =>
                {
                    InitLabel.Margin     = new Thickness(0, 90, 0, 0);
                    InitLabel.Background = Brushes.Black;
                    var daV1             = new DoubleAnimation(InitLabel.Width, Form.Width, new Duration(TimeSpan.FromMilliseconds(1)));
                    InitLabel.BeginAnimation(WidthProperty, daV1);
                    var daV2 = new DoubleAnimation(0, 1, new Duration(TimeSpan.FromSeconds(1)));
                    InitLabel.BeginAnimation(OpacityProperty, daV2);
                };
                InitLabel.BeginAnimation(OpacityProperty, daV);
            }));
        }
 private void LabelShow()
 {
     Task.Run(() =>
     {
         Dispatcher.BeginInvoke(new Action(() =>
         {
             var daV = new DoubleAnimation(0, 1, new Duration(TimeSpan.FromSeconds(1)));
             InitLabel.BeginAnimation(OpacityProperty, daV);
         }));
     });
 }