diff --git a/src/Shared/HandyControl_Shared/Controls/Growl/Growl.cs b/src/Shared/HandyControl_Shared/Controls/Growl/Growl.cs index f0f22f3a..7a102853 100644 --- a/src/Shared/HandyControl_Shared/Controls/Growl/Growl.cs +++ b/src/Shared/HandyControl_Shared/Controls/Growl/Growl.cs @@ -396,7 +396,7 @@ public class Growl : Control /// private static void Show(GrowlInfo growlInfo) { - Application.Current.Dispatcher?.Invoke( + (Application.Current.Dispatcher ?? growlInfo.Dispatcher)?.Invoke( #if NET40 new Action( #endif diff --git a/src/Shared/HandyControl_Shared/Data/Info/GrowlInfo.cs b/src/Shared/HandyControl_Shared/Data/Info/GrowlInfo.cs index 78a113f5..44464b99 100644 --- a/src/Shared/HandyControl_Shared/Data/Info/GrowlInfo.cs +++ b/src/Shared/HandyControl_Shared/Data/Info/GrowlInfo.cs @@ -1,6 +1,7 @@ using System; using System.Windows; using System.Windows.Media; +using System.Windows.Threading; namespace HandyControl.Data; @@ -37,4 +38,6 @@ public class GrowlInfo public string Token { get; set; } public FlowDirection FlowDirection { get; set; } + + public Dispatcher Dispatcher { get; set; } }