C# Class withSIX.Mini.Presentation.Wpf.Views.TrayNotification

Interaction logic for TrayNotification.xaml
Inheritance: withSIX.Mini.Presentation.Wpf.Controls.TrayNotificationControl, ITrayNotification
Mostrar archivo Open project: SIXNetworks/withSIX.Desktop

Public Properties

Property Type Description
ViewModelProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
Close void
OnBalloonClosing void
OnFadeOutCompleted void
grid_MouseEnter void
imgClose_MouseDown void

Public Methods

Method Description
TrayNotification ( ) : System

Private Methods

Method Description
Close ( ) : void
OnBalloonClosing ( object sender, RoutedEventArgs e ) : void

By subscribing to the TaskbarIcon.BalloonClosingEvent and setting the "Handled" property to true, we suppress the popup from being closed in order to display the custom fade-out animation.

OnFadeOutCompleted ( object sender, EventArgs e ) : void

Closes the popup once the fade-out animation completed. The animation was triggered in XAML through the attached BalloonClosing event.

grid_MouseEnter ( object sender, System.Windows.Input.MouseEventArgs e ) : void

If the users hovers over the balloon, we don't close it.

imgClose_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Resolves the TaskbarIcon that displayed the balloon and requests a close action.

Method Details

TrayNotification() public method

public TrayNotification ( ) : System
return System

Property Details

ViewModelProperty public_oe static_oe property

public static DependencyProperty,System.Windows ViewModelProperty
return System.Windows.DependencyProperty