Пример #1
0
 public static void Move(ToolTipContentProviderDelegate provider, Point location)
 {
     if (provider != _currentProvider || location != _currentLocation)
     {
         _timer.Stop();
         _currentProvider = provider;
         _currentLocation = location;
         if (_tip.IsOpen) Hide();
         _timer.Start();
     }
     else if (_tip.IsOpen)
     {
         Vector delta = Mouse.GetPosition(null) - _initialPosition;
         _tip.VerticalOffset = delta.Y;
         _tip.HorizontalOffset = delta.X;
     }
 }
Пример #2
0
 public static void Move(ToolTipContentProviderDelegate provider, Point location)
 {
     if (provider != _currentProvider || location != _currentLocation)
     {
         _timer.Stop();
         _currentProvider = provider;
         _currentLocation = location;
         if (_tip.IsOpen)
         {
             Hide();
         }
         _timer.Start();
     }
     else if (_tip.IsOpen)
     {
         Vector delta = Mouse.GetPosition(null) - _initialPosition;
         _tip.VerticalOffset   = delta.Y;
         _tip.HorizontalOffset = delta.X;
     }
 }
Пример #3
0
 public static void Move(ToolTipContentProviderDelegate provider, object tag)
 {
     if (provider != current_provider || tag != current_tag)
     {
         timer.Stop();
         current_provider = provider;
         current_tag      = tag;
         if (tip.IsOpen)
         {
             Hide();
         }
         timer.Start();
     }
     else if (tip.IsOpen)
     {
         Vector delta = Mouse.GetPosition(null) - initial_position;
         tip.VerticalOffset   = delta.Y;
         tip.HorizontalOffset = delta.X;
     }
 }