CHG Reformatted code and updated copyright notice.

NTFY-20

git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@201 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
Philipp Sumi
2013-11-23 00:58:21 +00:00
parent 1dd5b48f17
commit 90a7616b75
7 changed files with 20 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
// hardcodet.net NotifyIcon for WPF
// Copyright (c) 2009 Philipp Sumi
// Copyright (c) 2009 - 2013 Philipp Sumi
// Contact and Information: http://www.hardcodet.net
//
// This library is free software; you can redistribute it and/or
@@ -380,13 +380,13 @@ namespace Hardcodet.Wpf.TaskbarNotification
//remove the taskbar icon reference from the previously used element
SetParentTaskbarIcon((DependencyObject) e.OldValue, null);
}
if (e.NewValue != null)
{
//set this taskbar icon as a reference to the new tooltip element
SetParentTaskbarIcon((DependencyObject) e.NewValue, this);
}
//update tooltip settings - needed to make sure a string is set, even
//if the ToolTipText property is not set. Otherwise, the event that
//triggers tooltip display is never fired.