Added "NoLeftClickDelay" TaskbarIcon dependency property, to optionally make left clicks work without delay.

This commit is contained in:
jr
2015-07-09 15:20:11 +02:00
parent 13cd4b1728
commit c2876ee758
2 changed files with 38 additions and 3 deletions

View File

@@ -828,6 +828,33 @@ namespace Hardcodet.Wpf.TaskbarNotification
#endregion
#region NoLeftClickDelay dependency property
/// <summary>
/// Set to true to make left clicks work without delay.
/// </summary>
public static readonly DependencyProperty NoLeftClickDelayProperty =
DependencyProperty.Register("NoLeftClickDelay",
typeof(bool),
typeof(TaskbarIcon),
new FrameworkPropertyMetadata(false));
/// <summary>
/// A property wrapper for the <see cref="NoLeftClickDelayProperty"/>
/// dependency property:<br/>
/// Set to true to make left clicks work without delay.
/// </summary>
[Category(CategoryName)]
[Description("Set to true to make left clicks work without delay.")]
public bool NoLeftClickDelay
{
get { return (bool)GetValue(NoLeftClickDelayProperty); }
set { SetValue(NoLeftClickDelayProperty, value); }
}
#endregion
//EVENTS
#region TrayLeftMouseDown