Exemplo n.º 1
0
 private void Manager_MouseMoved(object sender, Handlers.MouseMoveEventArgs e)
 {
     Application.Current.Dispatcher.Invoke(() =>
     {
         var iconSize           = VMLocator.Main.IconSize;
         draggedIconWindow.Left = e.CursorPosition.X - iconSize / 2;
         draggedIconWindow.Top  = e.CursorPosition.Y - iconSize / 2;
         if (!draggedIconWindow.IsActive)
         {
             draggedIconWindow.Show();
         }
     });
 }
Exemplo n.º 2
0
 private void Manager_MouseMoved(object sender, Handlers.MouseMoveEventArgs e)
 {
     if (!VMLocator.Main.AutoHide)
     {
         return;
     }
     Application.Current.Dispatcher.Invoke(() =>
     {
         if (Hidden && MouseHotspot.Contains(e.CursorPosition))
         {
             Show();
         }
     });
 }