Release 1.0.6

*************

CHG   Removed version text from NuGet files.
CHG   Replaced Tuple usage from SystemInfo by Point, which is also supported by .NET 3.5.
CHG   Changelog and credits update.
This commit is contained in:
Philipp Sumi
2016-03-21 09:53:34 +01:00
parent 3d29133708
commit 337da82ce2
5 changed files with 20 additions and 17 deletions

View File

@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Hardcodet.NotifyIcon.Wpf</id>
<version>1.0.5</version>
<version>1.0.6</version>
<title>Hardcodet WPF NotifyIcon</title>
<authors>Philipp Sumi</authors>
<owners>Philipp Sumi</owners>
@@ -13,8 +13,8 @@
Source code and extensive sample application available at http://www.hardcodet.net/projects/wpf-notifyicon</description>
<summary>NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform.</summary>
<releaseNotes>Mostly bug fixes and full x64 / Win 8 support. Contains source and binaries for .NET 3.5 - 4.51.</releaseNotes>
<copyright>Copyright (c) 2013 Philipp Sumi</copyright>
<releaseNotes>Some bugfixes plus option to switch off double-click delays. Contains source and binaries for .NET 3.5 - 4.51.</releaseNotes>
<copyright>Copyright (c) 2016 Philipp Sumi</copyright>
<language />
<tags>NotifyIcon WPF Tray Notify ToolTip Popup Balloon Toast</tags>
</metadata>
@@ -37,6 +37,6 @@ Source code and extensive sample application available at http://www.hardcodet.n
<file src="..\Binaries\net451\Hardcodet.Wpf.TaskbarNotification.dll" target="lib\net451\Hardcodet.Wpf.TaskbarNotification.dll" />
<file src="..\Binaries\net451\Hardcodet.Wpf.TaskbarNotification.pdb" target="lib\net451\Hardcodet.Wpf.TaskbarNotification.pdb" />
<file src="..\Binaries\net451\Hardcodet.Wpf.TaskbarNotification.xml" target="lib\net451\Hardcodet.Wpf.TaskbarNotification.xml" />
<file src="readme.1.0.5.txt" target="readme.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>

View File

@@ -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

View File

@@ -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)
*****

View File

@@ -1,19 +1,18 @@
using System;
using System.Windows.Interop;
namespace Hardcodet.Wpf.TaskbarNotification.Interop
{
public static class SystemInfo
{
private static Tuple<double, double> dpiFactors;
private static System.Windows.Point? dpiFactors;
private static Tuple<double, double> 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;
}
}
}

View File

@@ -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"/>
<Button
HorizontalAlignment="Left"
Margin="10,133,0,0"