12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
-
- namespace XHWK.WKTool
- {
- /// <summary>
- /// CountdownWindow.xaml 的交互逻辑
- /// </summary>
- public partial class CountdownWindow : Window
- {
- public CountdownWindow()
- {
- InitializeComponent();
-
- }
- public void Initialize()
- {
- //Thread.Sleep(1200);
- //this.Hide();
- }
- /// <summary>
- /// 跳转页面
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void Window_ContentRendered(object sender, EventArgs e)
- {
- ScreenRecordingToolbarWindow win = new ScreenRecordingToolbarWindow();
- win.Topmost = true;
- win.Show();
- //显示在右下角
- double xpos = this.Left + this.Width - win.Width-10;
- double ypos = this.Top + this.Height - win.Height - 60;
-
-
- win.Left = xpos;
- win.Top = ypos;
- this.Hide();
-
- //Thread.Sleep(800);
- ////imgLoding.Source= new BitmapImage(new Uri("pack://application:,,/Images/countdown_2.png"));
- ////Thread.Sleep(300);
- ////imgLoding.Source = new BitmapImage(new Uri("pack://application:,,/Images/countdown_1.png"));
- ////Thread.Sleep(300);
- //this.Hide();
-
- //Initialize();
- }
-
- private void Image_MediaEnded(object sender, RoutedEventArgs e)
- {
- ((MediaElement)sender).Position = ((MediaElement)sender).Position.Add(TimeSpan.FromMilliseconds(10000));
- }
- }
- }
|