mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-02-16 18:49:54 -05:00
CHG Added missing designer attributes to some properties. Reformatted code.
(NTFY-21) git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@181 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
@@ -22,7 +22,6 @@
|
|||||||
// THIS COPYRIGHT NOTICE MAY NOT BE REMOVED FROM THIS FILE
|
// THIS COPYRIGHT NOTICE MAY NOT BE REMOVED FROM THIS FILE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
@@ -166,8 +165,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//DEPENDENCY PROPERTIES
|
//DEPENDENCY PROPERTIES
|
||||||
|
|
||||||
#region Icon property / IconSource dependency property
|
#region Icon property / IconSource dependency property
|
||||||
@@ -237,7 +234,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// WPF internally uses the dependency property system and bypasses the
|
/// WPF internally uses the dependency property system and bypasses the
|
||||||
/// <see cref="IconSource"/> property wrapper, updates of the property's value
|
/// <see cref="IconSource"/> property wrapper, updates of the property's value
|
||||||
/// should be handled here.
|
/// should be handled here.
|
||||||
/// </summary
|
/// </summary>
|
||||||
/// <param name="e">Provides information about the updated property.</param>
|
/// <param name="e">Provides information about the updated property.</param>
|
||||||
private void OnIconSourcePropertyChanged(DependencyPropertyChangedEventArgs e)
|
private void OnIconSourcePropertyChanged(DependencyPropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -297,7 +294,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// WPF internally uses the dependency property system and bypasses the
|
/// WPF internally uses the dependency property system and bypasses the
|
||||||
/// <see cref="ToolTipText"/> property wrapper, updates of the property's value
|
/// <see cref="ToolTipText"/> property wrapper, updates of the property's value
|
||||||
/// should be handled here.
|
/// should be handled here.
|
||||||
/// </summary
|
/// </summary>
|
||||||
/// <param name="e">Provides information about the updated property.</param>
|
/// <param name="e">Provides information about the updated property.</param>
|
||||||
private void OnToolTipTextPropertyChanged(DependencyPropertyChangedEventArgs e)
|
private void OnToolTipTextPropertyChanged(DependencyPropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -361,7 +358,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// WPF internally uses the dependency property system and bypasses the
|
/// WPF internally uses the dependency property system and bypasses the
|
||||||
/// <see cref="TrayToolTip"/> property wrapper, updates of the property's value
|
/// <see cref="TrayToolTip"/> property wrapper, updates of the property's value
|
||||||
/// should be handled here.
|
/// should be handled here.
|
||||||
/// </summary
|
/// </summary>
|
||||||
/// <param name="e">Provides information about the updated property.</param>
|
/// <param name="e">Provides information about the updated property.</param>
|
||||||
private void OnTrayToolTipPropertyChanged(DependencyPropertyChangedEventArgs e)
|
private void OnTrayToolTipPropertyChanged(DependencyPropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -435,7 +432,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// WPF internally uses the dependency property system and bypasses the
|
/// WPF internally uses the dependency property system and bypasses the
|
||||||
/// <see cref="TrayPopup"/> property wrapper, updates of the property's value
|
/// <see cref="TrayPopup"/> property wrapper, updates of the property's value
|
||||||
/// should be handled here.
|
/// should be handled here.
|
||||||
/// </summary
|
/// </summary>
|
||||||
/// <param name="e">Provides information about the updated property.</param>
|
/// <param name="e">Provides information about the updated property.</param>
|
||||||
private void OnTrayPopupPropertyChanged(DependencyPropertyChangedEventArgs e)
|
private void OnTrayPopupPropertyChanged(DependencyPropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -458,7 +455,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region MenuActivation dependency property
|
#region MenuActivation dependency property
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -515,7 +511,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region Visibility dependency property override
|
#region Visibility dependency property override
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -538,7 +533,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// WPF internally uses the dependency property system and bypasses the
|
/// WPF internally uses the dependency property system and bypasses the
|
||||||
/// <see cref="Visibility"/> property wrapper, updates of the property's value
|
/// <see cref="Visibility"/> property wrapper, updates of the property's value
|
||||||
/// should be handled here.
|
/// should be handled here.
|
||||||
/// </summary
|
/// </summary>
|
||||||
/// <param name="e">Provides information about the updated property.</param>
|
/// <param name="e">Provides information about the updated property.</param>
|
||||||
private void OnVisibilityPropertyChanged(DependencyPropertyChangedEventArgs e)
|
private void OnVisibilityPropertyChanged(DependencyPropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -602,7 +597,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// WPF internally uses the dependency property system and bypasses the
|
/// WPF internally uses the dependency property system and bypasses the
|
||||||
/// <see cref="FrameworkElement.DataContext"/> property wrapper, updates of the property's value
|
/// <see cref="FrameworkElement.DataContext"/> property wrapper, updates of the property's value
|
||||||
/// should be handled here.
|
/// should be handled here.
|
||||||
/// </summary
|
/// </summary>
|
||||||
/// <param name="e">Provides information about the updated property.</param>
|
/// <param name="e">Provides information about the updated property.</param>
|
||||||
private void OnDataContextPropertyChanged(DependencyPropertyChangedEventArgs e)
|
private void OnDataContextPropertyChanged(DependencyPropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -660,8 +655,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region DoubleClickCommand dependency property
|
#region DoubleClickCommand dependency property
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -680,6 +673,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// Associates a command that is being executed if the tray icon is being
|
/// Associates a command that is being executed if the tray icon is being
|
||||||
/// double clicked.
|
/// double clicked.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Category(CategoryName)]
|
||||||
|
[Description("A command that is being executed if the tray icon is being double-clicked.")]
|
||||||
public ICommand DoubleClickCommand
|
public ICommand DoubleClickCommand
|
||||||
{
|
{
|
||||||
get { return (ICommand) GetValue(DoubleClickCommandProperty); }
|
get { return (ICommand) GetValue(DoubleClickCommandProperty); }
|
||||||
@@ -704,6 +699,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// dependency property:<br/>
|
/// dependency property:<br/>
|
||||||
/// Command parameter for the <see cref="DoubleClickCommand"/>.
|
/// Command parameter for the <see cref="DoubleClickCommand"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Category(CategoryName)]
|
||||||
|
[Description("Parameter to submit to the DoubleClickCommand when the user double clicks on the NotifyIcon.")]
|
||||||
public object DoubleClickCommandParameter
|
public object DoubleClickCommandParameter
|
||||||
{
|
{
|
||||||
get { return GetValue(DoubleClickCommandParameterProperty); }
|
get { return GetValue(DoubleClickCommandParameterProperty); }
|
||||||
@@ -728,6 +725,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// dependency property:<br/>
|
/// dependency property:<br/>
|
||||||
/// The target of the command that is fired if the notify icon is double clicked.
|
/// The target of the command that is fired if the notify icon is double clicked.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Category(CategoryName)]
|
||||||
|
[Description("The target of the command that is fired if the notify icon is double clicked.")]
|
||||||
public IInputElement DoubleClickCommandTarget
|
public IInputElement DoubleClickCommandTarget
|
||||||
{
|
{
|
||||||
get { return (IInputElement) GetValue(DoubleClickCommandTargetProperty); }
|
get { return (IInputElement) GetValue(DoubleClickCommandTargetProperty); }
|
||||||
@@ -736,8 +735,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region LeftClickCommand dependency property
|
#region LeftClickCommand dependency property
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -754,8 +751,10 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// A property wrapper for the <see cref="LeftClickCommandProperty"/>
|
/// A property wrapper for the <see cref="LeftClickCommandProperty"/>
|
||||||
/// dependency property:<br/>
|
/// dependency property:<br/>
|
||||||
/// Associates a command that is being executed if the tray icon is being
|
/// Associates a command that is being executed if the tray icon is being
|
||||||
/// double clicked.
|
/// left-clicked.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Category(CategoryName)]
|
||||||
|
[Description("A command that is being executed if the tray icon is being left-clicked.")]
|
||||||
public ICommand LeftClickCommand
|
public ICommand LeftClickCommand
|
||||||
{
|
{
|
||||||
get { return (ICommand) GetValue(LeftClickCommandProperty); }
|
get { return (ICommand) GetValue(LeftClickCommandProperty); }
|
||||||
@@ -780,6 +779,9 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// dependency property:<br/>
|
/// dependency property:<br/>
|
||||||
/// Command parameter for the <see cref="LeftClickCommand"/>.
|
/// Command parameter for the <see cref="LeftClickCommand"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Category(CategoryName)]
|
||||||
|
[Description("The target of the command that is fired if the notify icon is clicked with the left mouse button."
|
||||||
|
)]
|
||||||
public object LeftClickCommandParameter
|
public object LeftClickCommandParameter
|
||||||
{
|
{
|
||||||
get { return GetValue(LeftClickCommandParameterProperty); }
|
get { return GetValue(LeftClickCommandParameterProperty); }
|
||||||
@@ -804,6 +806,9 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// dependency property:<br/>
|
/// dependency property:<br/>
|
||||||
/// The target of the command that is fired if the notify icon is clicked.
|
/// The target of the command that is fired if the notify icon is clicked.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Category(CategoryName)]
|
||||||
|
[Description("The target of the command that is fired if the notify icon is clicked with the left mouse button."
|
||||||
|
)]
|
||||||
public IInputElement LeftClickCommandTarget
|
public IInputElement LeftClickCommandTarget
|
||||||
{
|
{
|
||||||
get { return (IInputElement) GetValue(LeftClickCommandTargetProperty); }
|
get { return (IInputElement) GetValue(LeftClickCommandTargetProperty); }
|
||||||
@@ -812,8 +817,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//EVENTS
|
//EVENTS
|
||||||
|
|
||||||
#region TrayLeftMouseDown
|
#region TrayLeftMouseDown
|
||||||
@@ -821,7 +824,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// TrayLeftMouseDown Routed Event
|
/// TrayLeftMouseDown Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent TrayLeftMouseDownEvent = EventManager.RegisterRoutedEvent("TrayLeftMouseDown",
|
public static readonly RoutedEvent TrayLeftMouseDownEvent = EventManager.RegisterRoutedEvent(
|
||||||
|
"TrayLeftMouseDown",
|
||||||
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -864,7 +868,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// TrayRightMouseDown Routed Event
|
/// TrayRightMouseDown Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent TrayRightMouseDownEvent = EventManager.RegisterRoutedEvent("TrayRightMouseDown",
|
public static readonly RoutedEvent TrayRightMouseDownEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("TrayRightMouseDown",
|
||||||
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -905,7 +910,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// TrayMiddleMouseDown Routed Event
|
/// TrayMiddleMouseDown Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent TrayMiddleMouseDownEvent = EventManager.RegisterRoutedEvent("TrayMiddleMouseDown",
|
public static readonly RoutedEvent TrayMiddleMouseDownEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("TrayMiddleMouseDown",
|
||||||
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -941,7 +947,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region TrayLeftMouseUp
|
#region TrayLeftMouseUp
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1029,7 +1034,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// TrayMiddleMouseUp Routed Event
|
/// TrayMiddleMouseUp Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent TrayMiddleMouseUpEvent = EventManager.RegisterRoutedEvent("TrayMiddleMouseUp",
|
public static readonly RoutedEvent TrayMiddleMouseUpEvent = EventManager.RegisterRoutedEvent(
|
||||||
|
"TrayMiddleMouseUp",
|
||||||
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1065,13 +1071,13 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region TrayMouseDoubleClick
|
#region TrayMouseDoubleClick
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// TrayMouseDoubleClick Routed Event
|
/// TrayMouseDoubleClick Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent TrayMouseDoubleClickEvent = EventManager.RegisterRoutedEvent("TrayMouseDoubleClick",
|
public static readonly RoutedEvent TrayMouseDoubleClickEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("TrayMouseDoubleClick",
|
||||||
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1142,7 +1148,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
{
|
{
|
||||||
if (target == null) return null;
|
if (target == null) return null;
|
||||||
|
|
||||||
RoutedEventArgs args = new RoutedEventArgs();
|
var args = new RoutedEventArgs();
|
||||||
args.RoutedEvent = TrayMouseMoveEvent;
|
args.RoutedEvent = TrayMouseMoveEvent;
|
||||||
RoutedEventHelper.RaiseEvent(target, args);
|
RoutedEventHelper.RaiseEvent(target, args);
|
||||||
return args;
|
return args;
|
||||||
@@ -1150,13 +1156,13 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region TrayBalloonTipShown
|
#region TrayBalloonTipShown
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// TrayBalloonTipShown Routed Event
|
/// TrayBalloonTipShown Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent TrayBalloonTipShownEvent = EventManager.RegisterRoutedEvent("TrayBalloonTipShown",
|
public static readonly RoutedEvent TrayBalloonTipShownEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("TrayBalloonTipShown",
|
||||||
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1197,7 +1203,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// TrayBalloonTipClosed Routed Event
|
/// TrayBalloonTipClosed Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent TrayBalloonTipClosedEvent = EventManager.RegisterRoutedEvent("TrayBalloonTipClosed",
|
public static readonly RoutedEvent TrayBalloonTipClosedEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("TrayBalloonTipClosed",
|
||||||
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1238,7 +1245,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// TrayBalloonTipClicked Routed Event
|
/// TrayBalloonTipClicked Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent TrayBalloonTipClickedEvent = EventManager.RegisterRoutedEvent("TrayBalloonTipClicked",
|
public static readonly RoutedEvent TrayBalloonTipClickedEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("TrayBalloonTipClicked",
|
||||||
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1274,13 +1282,13 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region TrayContextMenuOpen (and PreviewTrayContextMenuOpen)
|
#region TrayContextMenuOpen (and PreviewTrayContextMenuOpen)
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// TrayContextMenuOpen Routed Event
|
/// TrayContextMenuOpen Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent TrayContextMenuOpenEvent = EventManager.RegisterRoutedEvent("TrayContextMenuOpen",
|
public static readonly RoutedEvent TrayContextMenuOpenEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("TrayContextMenuOpen",
|
||||||
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Bubble, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1317,7 +1325,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// PreviewTrayContextMenuOpen Routed Event
|
/// PreviewTrayContextMenuOpen Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent PreviewTrayContextMenuOpenEvent = EventManager.RegisterRoutedEvent("PreviewTrayContextMenuOpen",
|
public static readonly RoutedEvent PreviewTrayContextMenuOpenEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("PreviewTrayContextMenuOpen",
|
||||||
RoutingStrategy.Tunnel, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Tunnel, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1395,7 +1404,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// PreviewTrayPopupOpen Routed Event
|
/// PreviewTrayPopupOpen Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent PreviewTrayPopupOpenEvent = EventManager.RegisterRoutedEvent("PreviewTrayPopupOpen",
|
public static readonly RoutedEvent PreviewTrayPopupOpenEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("PreviewTrayPopupOpen",
|
||||||
RoutingStrategy.Tunnel, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Tunnel, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1431,7 +1441,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region TrayToolTipOpen (and PreviewTrayToolTipOpen)
|
#region TrayToolTipOpen (and PreviewTrayToolTipOpen)
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1474,7 +1483,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// PreviewTrayToolTipOpen Routed Event
|
/// PreviewTrayToolTipOpen Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent PreviewTrayToolTipOpenEvent = EventManager.RegisterRoutedEvent("PreviewTrayToolTipOpen",
|
public static readonly RoutedEvent PreviewTrayToolTipOpenEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("PreviewTrayToolTipOpen",
|
||||||
RoutingStrategy.Tunnel, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Tunnel, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1552,7 +1562,8 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// PreviewTrayToolTipClose Routed Event
|
/// PreviewTrayToolTipClose Routed Event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly RoutedEvent PreviewTrayToolTipCloseEvent = EventManager.RegisterRoutedEvent("PreviewTrayToolTipClose",
|
public static readonly RoutedEvent PreviewTrayToolTipCloseEvent =
|
||||||
|
EventManager.RegisterRoutedEvent("PreviewTrayToolTipClose",
|
||||||
RoutingStrategy.Tunnel, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
RoutingStrategy.Tunnel, typeof (RoutedEventHandler), typeof (TaskbarIcon));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1588,7 +1599,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
//ATTACHED EVENTS
|
//ATTACHED EVENTS
|
||||||
|
|
||||||
#region PopupOpened
|
#region PopupOpened
|
||||||
@@ -1811,8 +1821,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//ATTACHED PROPERTIES
|
//ATTACHED PROPERTIES
|
||||||
|
|
||||||
#region ParentTaskbarIcon
|
#region ParentTaskbarIcon
|
||||||
@@ -1849,7 +1857,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
//BASE CLASS PROPERTY OVERRIDES
|
//BASE CLASS PROPERTY OVERRIDES
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1858,7 +1865,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
static TaskbarIcon()
|
static TaskbarIcon()
|
||||||
{
|
{
|
||||||
//register change listener for the Visibility property
|
//register change listener for the Visibility property
|
||||||
PropertyMetadata md = new PropertyMetadata(Visibility.Visible, VisibilityPropertyChanged);
|
var md = new PropertyMetadata(Visibility.Visible, VisibilityPropertyChanged);
|
||||||
VisibilityProperty.OverrideMetadata(typeof (TaskbarIcon), md);
|
VisibilityProperty.OverrideMetadata(typeof (TaskbarIcon), md);
|
||||||
|
|
||||||
//register change listener for the DataContext property
|
//register change listener for the DataContext property
|
||||||
@@ -1869,7 +1876,5 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
md = new FrameworkPropertyMetadata(new PropertyChangedCallback(ContextMenuPropertyChanged));
|
md = new FrameworkPropertyMetadata(new PropertyChangedCallback(ContextMenuPropertyChanged));
|
||||||
ContextMenuProperty.OverrideMetadata(typeof (TaskbarIcon), md);
|
ContextMenuProperty.OverrideMetadata(typeof (TaskbarIcon), md);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user