diff --git a/Hardcodet.NotifyIcon.Wpf/NuGet/Hardcodet.NotifyIcon.Wpf.1.0.5.nuspec b/Hardcodet.NotifyIcon.Wpf/NuGet/Hardcodet.NotifyIcon.Wpf.nuspec similarity index 92% rename from Hardcodet.NotifyIcon.Wpf/NuGet/Hardcodet.NotifyIcon.Wpf.1.0.5.nuspec rename to Hardcodet.NotifyIcon.Wpf/NuGet/Hardcodet.NotifyIcon.Wpf.nuspec index b05302f..b27ef32 100644 --- a/Hardcodet.NotifyIcon.Wpf/NuGet/Hardcodet.NotifyIcon.Wpf.1.0.5.nuspec +++ b/Hardcodet.NotifyIcon.Wpf/NuGet/Hardcodet.NotifyIcon.Wpf.nuspec @@ -2,7 +2,7 @@ Hardcodet.NotifyIcon.Wpf - 1.0.5 + 1.0.6 Hardcodet WPF NotifyIcon Philipp Sumi Philipp Sumi @@ -13,8 +13,8 @@ Source code and extensive sample application available at http://www.hardcodet.net/projects/wpf-notifyicon NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform. - Mostly bug fixes and full x64 / Win 8 support. Contains source and binaries for .NET 3.5 - 4.51. - Copyright (c) 2013 Philipp Sumi + Some bugfixes plus option to switch off double-click delays. Contains source and binaries for .NET 3.5 - 4.51. + Copyright (c) 2016 Philipp Sumi NotifyIcon WPF Tray Notify ToolTip Popup Balloon Toast @@ -37,6 +37,6 @@ Source code and extensive sample application available at http://www.hardcodet.n - + \ No newline at end of file diff --git a/Hardcodet.NotifyIcon.Wpf/NuGet/readme.1.0.5.txt b/Hardcodet.NotifyIcon.Wpf/NuGet/readme.txt similarity index 80% rename from Hardcodet.NotifyIcon.Wpf/NuGet/readme.1.0.5.txt rename to Hardcodet.NotifyIcon.Wpf/NuGet/readme.txt index 44773fc..eb3628f 100644 --- a/Hardcodet.NotifyIcon.Wpf/NuGet/readme.1.0.5.txt +++ b/Hardcodet.NotifyIcon.Wpf/NuGet/readme.txt @@ -1,10 +1,7 @@ -Hardcodet NotifyIcon for WPF 1.0.5 -********************************** +Hardcodet NotifyIcon for WPF +**************************** This is an implementation of a NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform. It does not just rely on the Windows Forms NotifyIcon component, but is a purely independent control which leverages several features of the WPF framework in order to display rich tooltips, popups, context menus, and balloon messages. It can be used directly in code or embedded in any XAML file. This package contains only binaries. For source code and samples, please visit the project page: -http://www.hardcodet.net/projects/wpf-notifyicon - - - +http://www.hardcodet.net/projects/wpf-notifyicon \ No newline at end of file diff --git a/Hardcodet.NotifyIcon.Wpf/Source/Changelog.txt b/Hardcodet.NotifyIcon.Wpf/Source/Changelog.txt index 4b306f5..474e6f6 100644 --- a/Hardcodet.NotifyIcon.Wpf/Source/Changelog.txt +++ b/Hardcodet.NotifyIcon.Wpf/Source/Changelog.txt @@ -2,6 +2,13 @@ hardcodet.net NotifyIcon for WPF - Changelog Copyright (c) 2009-2013 Philipp Sumi Contact and Information: http://www.hardcodet.net +1.0.6 (2016.03.20) +***** + +FIX GetDeviceCoordinates now uses new SystemInfo class, which resolves potential null reference issues. Thanks Alexandr Reshetnikov. +ADD Added "NoLeftClickDelay" TaskbarIcon dependency property, to optionally make left clicks work without delay. Thanks John Reynolds. +ADD Overload to show built-in tray tooltips with big icons. Thanks amulware. + 1.0.5 (2013.11.20) ***** diff --git a/Hardcodet.NotifyIcon.Wpf/Source/NotifyIconWpf/Interop/SystemInfo.cs b/Hardcodet.NotifyIcon.Wpf/Source/NotifyIconWpf/Interop/SystemInfo.cs index 8274196..feb42a4 100644 --- a/Hardcodet.NotifyIcon.Wpf/Source/NotifyIconWpf/Interop/SystemInfo.cs +++ b/Hardcodet.NotifyIcon.Wpf/Source/NotifyIconWpf/Interop/SystemInfo.cs @@ -1,19 +1,18 @@ -using System; using System.Windows.Interop; namespace Hardcodet.Wpf.TaskbarNotification.Interop { public static class SystemInfo { - private static Tuple dpiFactors; + private static System.Windows.Point? dpiFactors; - private static Tuple DpiFactors + private static System.Windows.Point? DpiFactors { get { if (dpiFactors == null) using (var source = new HwndSource(new HwndSourceParameters())) - dpiFactors = Tuple.Create(source.CompositionTarget.TransformToDevice.M11, source.CompositionTarget.TransformToDevice.M22); + dpiFactors = new System.Windows.Point(source.CompositionTarget.TransformToDevice.M11, source.CompositionTarget.TransformToDevice.M22); return dpiFactors; } } @@ -23,7 +22,7 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop get { var factors = DpiFactors; - return factors != null ? factors.Item1 : 1; + return factors.HasValue ? factors.Value.X : 1; } } @@ -32,7 +31,7 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop get { var factors = DpiFactors; - return factors != null ? factors.Item2 : 1; + return factors.HasValue ? factors.Value.Y : 1; } } } diff --git a/Hardcodet.NotifyIcon.Wpf/Source/Sample Project/Main.xaml b/Hardcodet.NotifyIcon.Wpf/Source/Sample Project/Main.xaml index 95473cc..38e32fc 100644 --- a/Hardcodet.NotifyIcon.Wpf/Source/Sample Project/Main.xaml +++ b/Hardcodet.NotifyIcon.Wpf/Source/Sample Project/Main.xaml @@ -30,7 +30,7 @@ FontSize="14" FontStyle="Italic" FontWeight="Bold" - TextWrapping="Wrap" Text="WPF NotifyIcon 1.0.5 - Samples"/> + TextWrapping="Wrap" Text="WPF NotifyIcon 1.0.6 - Samples"/>