diff --git a/WinAlfred/Msg.xaml b/WinAlfred/Msg.xaml index ef17b34532..06d7a65d60 100644 --- a/WinAlfred/Msg.xaml +++ b/WinAlfred/Msg.xaml @@ -7,7 +7,7 @@ ResizeMode="NoResize" WindowStyle="None" ShowInTaskbar="False" - Title="Msg" Height="60" Width="382.978"> + Title="Msg" Height="60" Width="420"> @@ -22,7 +22,7 @@ - + diff --git a/WinAlfred/Msg.xaml.cs b/WinAlfred/Msg.xaml.cs index 353279de68..5959f72862 100644 --- a/WinAlfred/Msg.xaml.cs +++ b/WinAlfred/Msg.xaml.cs @@ -69,14 +69,16 @@ namespace WinAlfred } imgIco.Source = new BitmapImage(new Uri(icopath)); Show(); - new Timer(o => - { - if (!closing) - { - closing = true; - Dispatcher.Invoke(new Action(fadeOutStoryboard.Begin)); - } - }, null, TimeSpan.FromSeconds(3), TimeSpan.FromMilliseconds(-1)); + + Dispatcher.DelayInvoke("ShowMsg", + o => + { + if (!closing) + { + closing = true; + Dispatcher.Invoke(new Action(fadeOutStoryboard.Begin)); + } + }, TimeSpan.FromSeconds(3)); } } }