Win32Exception: 目前的程序已經使用了視窗管理員物件所有的系統可用控制代碼。 --NativeErrorCode: 1158 StackTrace: 於 MS.Win32.SafeNativeMethods.SetTimer(HandleRef hWnd, Int32 nIDEvent, Int32 uElapse) 於 System.Windows.Threading.Dispatcher.SetWin32Timer(Int32 dueTimeInTicks) 於 System.Windows.Threading.Dispatcher.UpdateWin32TimerFromDispatcherThread(Object unused) 於 System.Windows.Threading.Dispatcher.AddTimer(DispatcherTimer timer) 於 System.Windows.Threading.DispatcherTimer.Restart() 於 System.Windows.Threading.DispatcherTimer.Start() 於 System.Windows.Threading.DispatcherTimer.set_IsEnabled(Boolean value) 於 System.Windows.Input.InputManager.InvalidateInputDevices() 於 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) 於 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) 於 System.Windows.Interop.HwndTarget.OnResize() 於 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) 於 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 於 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 於 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 於 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 於 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)