public MainWindow()
        {
            InitializeComponent();
#if DEBUG
            this.AttachDevTools();
#endif
            WindowsTrayIcon icon = new WindowsTrayIcon();
        }
Exemple #2
0
 public void Initialize()
 {
     tray           = new WindowsTrayIcon("Platforms/Windows/Resources/trayicon.ico");
     tray.LeftClick = () =>
     {
         Microsoft.Maui.MauiWinUIApplication.Current.MainWindow.BringToFront();
         ClickHandler?.Invoke();
     };
 }
        public MainWindow()
        {
            InitializeComponent();

            WindowsTrayIcon icon = new WindowsTrayIcon();
        }