NullReferenceException: 未将对象引用设置到对象的实例。
StackTrace:
在 DynamicClass.aa.<>c__DisplayClass1a9.<OnWindowLoaded>b__17f(Object s, EventArgs e)
在 System.Windows.Window.OnDeactivated(EventArgs e)
在 System.Windows.Window.HandleActivate(Boolean windowActivated)
在 System.Windows.Window.WmActivate(IntPtr wParam)
在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)