Exception:在“System.Windows.StaticResourceExtension”上提供值时引发了异常。无法找到名为“NotificationText”的资源。资源名称区分大小写。

报错信息 1
XamlParseException: 在“System.Windows.StaticResourceExtension”上提供值时引发了异常。
--LineNumber: 0
--LinePosition: 0
--BaseUri: pack://application:,,,/ToastNotifications.Messages;component/information/informationdisplaypart.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)
   在 ToastNotifications.Messages.Information.InformationMessage.CreateDisplayPart()
   在 ToastNotifications.Messages.Core.MessageBase`1.Configure()
   在 ToastNotifications.Messages.Core.MessageBase`1.get_DisplayPart()
   在 ToastNotifications.Display.NotificationsDisplaySupervisor.CloseNotification(INotification notification)
   在 ToastNotifications.Lifetime.TimeAndCountBasedLifetimeSupervisor.CloseNotification(INotification notification)
   在 ToastNotifications.Lifetime.TimeAndCountBasedLifetimeSupervisor.OnTimerTick()
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 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)

Exception: 无法找到名为“NotificationText”的资源。资源名称区分大小写。
StackTrace:
   在 System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
   在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)

版本:1.42.32 2024-07-01 16:48 Microsoft Windows NT 10.0.19045.0
报错信息 2
XamlParseException: 在“System.Windows.StaticResourceExtension”上提供值时引发了异常。
--LineNumber: 0
--LinePosition: 0
--BaseUri: pack://application:,,,/ToastNotifications.Messages;component/success/successdisplaypart.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)
   在 ToastNotifications.Messages.Success.SuccessMessage.CreateDisplayPart()
   在 ToastNotifications.Messages.Core.MessageBase`1.Configure()
   在 ToastNotifications.Messages.Core.MessageBase`1.get_DisplayPart()
   在 ToastNotifications.Display.NotificationsDisplaySupervisor.CloseNotification(INotification notification)
   在 ToastNotifications.Lifetime.TimeAndCountBasedLifetimeSupervisor.CloseNotification(INotification notification)
   在 ToastNotifications.Lifetime.TimeAndCountBasedLifetimeSupervisor.OnTimerTick()
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 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)

Exception: 无法找到名为“NotificationText”的资源。资源名称区分大小写。
StackTrace:
   在 System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
   在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)

版本:1.42.32 2024-07-01 09:32 Microsoft Windows NT 10.0.19045.0
报错信息 3
XamlParseException: 在“System.Windows.StaticResourceExtension”上提供值时引发了异常。
--LineNumber: 0
--LinePosition: 0
--BaseUri: pack://application:,,,/ToastNotifications.Messages;component/information/informationdisplaypart.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)
   在 ToastNotifications.Messages.Information.InformationMessage.CreateDisplayPart()
   在 ToastNotifications.Messages.Core.MessageBase`1.Configure()
   在 ToastNotifications.Messages.Core.MessageBase`1.get_DisplayPart()
   在 ToastNotifications.Display.NotificationsDisplaySupervisor.CloseNotification(INotification notification)
   在 ToastNotifications.Lifetime.TimeAndCountBasedLifetimeSupervisor.CloseNotification(INotification notification)
   在 ToastNotifications.Lifetime.TimeAndCountBasedLifetimeSupervisor.OnTimerTick()
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 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)
   在 System.Windows.Threading.DispatcherOperation.InvokeImpl()
   在 MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Windows.Threading.DispatcherOperation.Invoke()
   在 System.Windows.Threading.Dispatcher.ProcessQueue()
   在 System.Windows.Threading.Dispatcher.WndProcHook(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)
   在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   在 MS.Win32.UnsafeNativeMethods.MessageBox(HandleRef hWnd, String text, String caption, Int32 type)

Exception: 无法找到名为“NotificationText”的资源。资源名称区分大小写。
StackTrace:
   在 System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
   在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)

版本:1.42.32 2024-06-26 21:20 Microsoft Windows NT 10.0.22631.0