FIX ToolTipText changes update an existing wrapper ToolTip, if there is already one.

NTFY-23

git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@195 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
Philipp Sumi
2013-11-22 23:03:56 +00:00
parent 4a656bb24e
commit cb3721ce48
2 changed files with 15 additions and 5 deletions

View File

@@ -522,7 +522,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
if (tt == null && TrayToolTip != null)
{
//create an invisible tooltip that hosts the UIElement
//create an invisible wrapper tooltip that hosts the UIElement
tt = new ToolTip();
tt.Placement = PlacementMode.Mouse;
@@ -542,7 +542,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
}
else if (tt == null && !String.IsNullOrEmpty(ToolTipText))
{
//create a simple tooltip for the string
//create a simple tooltip for the ToolTipText string
tt = new ToolTip();
tt.Content = ToolTipText;
}