Exception:设置属性“System.Windows.ResourceDictionary.DeferrableContent”时引发了异常。已添加项。字典中的关键字:“ButtonBackground”所添加的关键字:“ButtonBackground”

报错信息

XamlParseException: 设置属性“System.Windows.ResourceDictionary.DeferrableContent”时引发了异常。
--LineNumber: 0
--LinePosition: 0
--BaseUri: pack://application:,,,/IntelliTools.0.8.265.0;V0.8.265.0;component/view/panel/panelwindow.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)
   在 IntelliTools.View.Panel.PanelWindow..ctor(IFavorItemViewModelProvider vmProvider, PanelWindowViewMode viewMode, IWindowHideService windowHideService, IActiveWindowService activeWindowService)
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   在 Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   在 Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
   在 Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   在 Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   在 Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
   在 Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   在 Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   在 IntelliTools.Launcher.GetService[T]()
   在 IntelliTools.Domain.Service.PanelService.CreatePanelWindowInternal(FavorItem favorItem, PanelItem panelItem)
   在 IntelliTools.Domain.Service.PanelService.CreatePanelWindow(FavorItem favorItem)
   在 IntelliTools.Domain.Service.PanelService.ShowPanel(FavorItem favorItem, WindowLocations showLoc)
   在 IntelliTools.Public.Verb.PanelVerb.RunOptions(CmdVerbRunContext context)
   在 IntelliTools.Public.Verb.CommandRunner.<>c__DisplayClass3_0.<RunCommand>b__0(Object obj)
   在 CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   在 IntelliTools.Public.Verb.CommandRunner.RunCommand(String[] args, CmdVerbRunContext context)
   在 IntelliTools.Public.Verb.CommandRunner.RunMultiLineCommand(IEnumerable`1 lines, CmdVerbRunContext context)
   在 IntelliTools.Launcher.ExecuteCommandLines(String args, CmdVerbRunContext context)
   在 IntelliTools.Launcher.Run(String args, IActionContext _context)
   在 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)

ArgumentException: 已添加项。字典中的关键字:“ButtonBackground”所添加的关键字:“ButtonBackground”
--Message: 已添加项。字典中的关键字:“ButtonBackground”所添加的关键字:“ButtonBackground”
StackTrace:
   在 System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
   在 System.Windows.ResourceDictionary.SetKeys(IList`1 keyCollection, IServiceProvider serviceProvider)
   在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_DeferrableContent>b__297_0(Object target, Object value)
   在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)

 

解决方法

暂无解决方案。

相关信息
0 查看
6小时24分钟前
Quicker版本
版本 反馈次数
1.45.5 1