XamlParseException: 設定屬性 'System.Windows.Media.VisualBrush.Visual' 時擲回例外狀況。 --LineNumber: 0 --LinePosition: 0 --BaseUri: pack://application:,,,/ToastNotifications.Messages;component/warning/warningdisplaypart.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.Warning.WarningMessage.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) InvalidOperationException: 呼叫執行緒無法存取此物件,因為此物件屬於另一個執行緒。 StackTrace: 於 System.Windows.Threading.Dispatcher.VerifyAccess() 於 MS.Internal.Media.VisualTreeUtils.AsVisual(DependencyObject element, Visual& visual, Visual3D& visual3D) 於 System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference) 於 System.Windows.Media.VisualBrush.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.Baml2006.WpfMemberInvoker.SetValue(Object instance, Object value) 於 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)