Exception:設定屬性 'System.Windows.Setter.Property' 時擲回例外狀況。值不能為 null。 參數名稱: property

报错信息

XamlParseException
   於 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.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.FrameworkElement.FindResourceInTree(FrameworkElement feStart, FrameworkContentElement fceStart, DependencyProperty dp, Object resourceKey, Object unlinkedParent, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, DependencyObject boundaryElement, InheritanceBehavior& inheritanceBehavior, Object& source)
   於 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.TreeWalkHelper.InvalidateOnTreeChange(FrameworkElement fe, FrameworkContentElement fce, DependencyObject parent, Boolean isAddOperation)
   於 System.Windows.FrameworkElement.OnVisualParentChanged(DependencyObject oldParent)
   於 System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent)
   於 System.Windows.Media.Visual.AddVisualChild(Visual child)
   於 System.Windows.FrameworkElement.set_TemplateChild(UIElement value)
   於 System.Windows.Controls.ContentPresenter.UseContentTemplate.BuildVisualTree(FrameworkElement container)
   於 System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
   於 System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
   於 System.Windows.FrameworkElement.ApplyTemplate()
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   於 System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   於 System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.Border.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.Control.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.StackPanel.StackMeasureHelper(IStackMeasure measureElement, IStackMeasureScrollData scrollData, Size constraint)
   於 System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   於 System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   於 System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   於 System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   於 System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.Border.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.Control.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Controls.Primitives.PopupRoot.MeasureOverride(Size constraint)
   於 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   於 System.Windows.UIElement.Measure(Size availableSize)
   於 System.Windows.Interop.HwndSource.SetLayoutSize()
   於 System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   於 System.Windows.Controls.Primitives.Popup.SetRootVisualToPopupRoot()
   於 System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
   於 System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   於 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   於 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   於 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   於 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   於 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   於 System.Windows.Data.BindingOperations.SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
   於 System.Windows.Controls.Primitives.Popup.CreateRootPopupInternal(Popup popup, UIElement child, Boolean bindTreatMousePlacementAsBottomProperty)
   於 System.Windows.Controls.ContextMenu.HookupParentPopup()
   於 System.Windows.Controls.ContextMenu.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   於 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   於 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   於 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   於 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   於 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   於 System.Windows.DependencyObject.SetCurrentValueInternal(DependencyProperty dp, Object value)
   於 System.Windows.Controls.PopupControlService.RaiseContextMenuOpeningEvent(IInputElement source, Double x, Double y, Boolean userInitiated)
   於 System.Windows.Controls.PopupControlService.ProcessMouseUp(Object sender, MouseButtonEventArgs e)
   於 System.Windows.Controls.PopupControlService.OnPostProcessInput(Object sender, ProcessInputEventArgs e)
   於 System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   於 System.Windows.Input.InputManager.ProcessStagingArea()
   於 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   於 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   於 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   於 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   於 System.Windows.Interop.HwndSource.InputFilterMessage(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)

ArgumentNullException
值不能為 null。
參數名稱: property
   於 System.Windows.Setter.CheckValidProperty(DependencyProperty property)
   於 System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_Setter_Property>b__341_0(Object target, Object value)
   於 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value) 

解决方法

暂无解决方案。

相关信息
0 查看
2023-11-23 11:42
Quicker版本
版本 反馈次数