Пример #1
0
 private void grid_MouseLeave(object sender, MouseEventArgs e)
 {
     if (isChangingSong)
     {
         return;
     }
     TaskBarIcon.CloseBalloon();
 }
Пример #2
0
        private async void btn_view_click(object sender, RoutedEventArgs e)
        {
            //the tray icon assigned this attached property to simplify access
            var win = Artwork.DataBus.DataBus.Get("MainWindow") as Window;

            if (win == null)
            {
                return;
            }
            win.WindowState = WindowState.Normal;
            win.Topmost     = true;
            TaskBarIcon.CloseBalloon();
            await Task.Delay(1000);

            win.Topmost = false;
        }
Пример #3
0
 /// <summary>
 /// Resolves the <see cref="TaskbarIcon"/> that displayed
 /// the balloon and requests a close action.
 /// </summary>
 private void btn_close_click(object sender, RoutedEventArgs e)
 {
     //the tray icon assigned this attached property to simplify access
     e.Handled = true;
     TaskBarIcon.CloseBalloon();
 }