XamlParseException: 初始化“System.Windows.Controls.Button”时引发了异常。 --LineNumber: 0 --LinePosition: 0 --BaseUri: pack://application:,,,/Quicker;component/view/settings/unhandledexceptionwindow.xaml StackTrace: 在 System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) 在 System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) 在 System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) 在 System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) 在 Quicker.View.UnhandledExceptionWindow.InitializeComponent() 在 Quicker.View.UnhandledExceptionWindow..ctor(Exception ex, Boolean canIgnore) 在 Quicker.App.<>c__DisplayClass28_0.palHXbcOmpe() 在 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) TypeInitializationException: “System.Windows.Media.DrawingGroup”的类型初始值设定项引发异常。 --TypeName: System.Windows.Media.DrawingGroup StackTrace: 在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.Create_BamlProperty_DrawingGroup_Children() 在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.GetKnownBamlMember(Int16 memberId) 在 System.Windows.Baml2006.WpfXamlType.FindKnownMember(WpfXamlType wpfXamlType, String name, Boolean isAttachable) 在 System.Windows.Baml2006.WpfXamlType.FindKnownMember(String name, Boolean isAttachable) 在 System.Windows.Baml2006.WpfXamlType.FindMember(String name, Boolean isAttached, Boolean skipReadOnlyCheck) 在 System.Xaml.XamlType.GetMember(String name) 在 System.Windows.Baml2006.WpfKnownType.LookupContentProperty() 在 System.Xaml.XamlType.get_ContentProperty() 在 System.Windows.Baml2006.Baml2006Reader.InjectPropertyAndFrameIfNeeded(XamlType elementType, SByte flags) 在 System.Windows.Baml2006.Baml2006Reader.Process_ElementStart() 在 System.Windows.Baml2006.Baml2006Reader.ReadObject(KeyRecord record) 在 System.Windows.ResourceDictionary.CreateObject(KeyRecord key) 在 System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache) 在 System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache) 在 System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache) 在 System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache) 在 System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache) 在 System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache) 在 System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache) 在 System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache) 在 System.Windows.FrameworkElement.FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, DependencyProperty dp, Object resourceKey, Object unlinkedParent, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, DependencyObject boundaryElement, Boolean isImplicitStyleLookup, Object& source) 在 System.Windows.FrameworkElement.FindImplicitStyleResource(FrameworkElement fe, Object resourceKey, Object& source) 在 System.Windows.FrameworkElement.GetRawValue(DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry& entry) 在 System.Windows.FrameworkElement.EvaluateBaseValueCore(DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry& newEntry) 在 System.Windows.DependencyObject.EvaluateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry newEntry, OperationType operationType) 在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) 在 System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue) 在 System.Windows.FrameworkElement.UpdateStyleProperty() 在 System.Windows.FrameworkElement.OnInitialized(EventArgs e) 在 System.Windows.FrameworkElement.TryFireInitialized() 在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(XamlType xamlType, Object obj, Boolean begin) AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。 StackTrace: 在 System.Windows.DependencyProperty.IsValidType(Object value, Type propertyType) 在 System.Windows.DependencyProperty.ValidateDefaultValueCommon(Object defaultValue, Type propertyType, String propertyName, ValidateValueCallback validateValueCallback, Boolean checkThreadAffinity) 在 System.Windows.DependencyProperty.SetupOverrideMetadata(Type forType, PropertyMetadata typeMetadata, DependencyObjectType& dType, PropertyMetadata& baseMetadata) 在 System.Windows.DependencyProperty.OverrideMetadata(Type forType, PropertyMetadata typeMetadata) 在 System.Windows.Media.DrawingGroup..cctor()