wpf 測量控制項Binding時間

  • 195
  • 0
  • WPF
  • 2018-09-06

測量控制項Binding時間

 

var sw = new Stopwatch();
            sw.Start();
            //Set value and raise property changed

  Dispatcher.CurrentDispatcher.BeginInvoke(
  DispatcherPriority.Loaded,
  new Action(() =>
  {
      sw.Stop();
      MessageBox.Show("Took " + sw.ElapsedMilliseconds + " ms");
  }));


 

有任何改進的意見及問題歡迎傳送到電子郵件

電子郵件:momo16542@gmail.com