TypeInitializationException: “System.Windows.Automation.ControlType”的类型初始值设定项引发异常。 在 System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree() 在 System.Windows.ContextLayoutManager.fireAutomationEvents() 在 System.Windows.ContextLayoutManager.UpdateLayout() 在 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) 在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() 在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) 在 System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget) 在 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) OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。 在 System.Windows.Automation.ControlType..cctor()