示例#1
0
 public void SetTrayHostSizeData()
 {
     if (Host != null)
     {
         // set current menu bar to return placement for ABM_GETTASKBARPOS message
         _notificationArea.SetTrayHostSizeData(GetTrayHostSizeData());
     }
 }
        private void Image_MouseUp(object sender, MouseButtonEventArgs e)
        {
            var trayIcon = (sender as Decorator).DataContext as NotifyIcon;

            if (Host != null)
            {
                // set current menu bar to return placement for ABM_GETTASKBARPOS message
                _notificationArea.SetTrayHostSizeData(GetTrayHostSizeData());
            }
            trayIcon?.IconMouseClick(e.ChangedButton, MouseHelper.GetCursorPositionParam(), System.Windows.Forms.SystemInformation.DoubleClickTime);
        }