private void AxisInteractionCanvas_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e) { var point = new Point(double.NegativeInfinity, double.NegativeInfinity); if (!Standalone) { Plot(point, EventMessage.MouseOn); Cross.PlotToParent(point, EventMessage.MouseOn); DataToolTip.PlotToParent(point, EventMessage.MouseOn); } else { PlotStandalone(point, EventMessage.MouseOn); Cross.PlotToParentStandalone(point, EventMessage.MouseOn); DataToolTip.PlotToParentStandalone(point, EventMessage.MouseOn); } }
private void AxisInteractionVisual_MouseMove(object sender, System.Windows.Input.MouseEventArgs e) { if (ParentElement == null || !ParentElement.IsMouseOver) { return; } var point = e.GetPosition(this); Cross.VisualData = VisualData; DataToolTip.VisualData = VisualData; if (!Standalone) { Plot(point, EventMessage.MouseOn); Cross.PlotToParent(point, EventMessage.MouseOn); DataToolTip.PlotToParent(point, EventMessage.MouseOn); } else { PlotStandalone(point, EventMessage.MouseOn); Cross.PlotToParentStandalone(point, EventMessage.MouseOn); DataToolTip.PlotToParentStandalone(point, EventMessage.MouseOn); } }