Esempio n. 1
0
 private static void DetachHoverMonitor(UIElement element)
 {
     MouseHover.Monitor mouseHoverMonitor = MouseHover.GetMouseHoverMonitor(element);
     if (mouseHoverMonitor != null)
     {
         mouseHoverMonitor.Dispose();
         MouseHover.SetMouseHoverMonitor(element, null);
     }
 }
Esempio n. 2
0
 private static void AttachHoverMonitor(UIElement element)
 {
     MouseHover.DetachHoverMonitor(element);
     MouseHover.SetMouseHoverMonitor(element, new MouseHover.Monitor(element));
 }