소스 검색

Activate window after double clicking tray icon

Daniel Chalmers 1 년 전
부모
커밋
db6984f8bc
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      DesktopClock/MainWindow.xaml.cs

+ 1 - 0
DesktopClock/MainWindow.xaml.cs

@@ -171,6 +171,7 @@ public partial class MainWindow : Window
                 _trayIcon.ContextMenu = Resources["MainContextMenu"] as ContextMenu;
                 _trayIcon.ContextMenu.DataContext = this;
                 _trayIcon.ForceCreate(enablesEfficiencyMode: false);
+                _trayIcon.TrayLeftMouseDoubleClick += (_, _) => Activate();
             }
 
             if (!firstLaunch)