private void OnContainerMouseUp(object sender, wpf::System.Windows.Input.MouseButtonEventArgs e) { e.Handled = MouseDevice.ProcessRawEvent(new RawMouseButtonEventArgs(converter.ConvertBack(e.ChangedButton), converter.ConvertBack(e.ButtonState), converter.ConvertBack(e.GetPosition(container)), GetTimestamp())); if (e.MouseDevice.Captured == container) { e.MouseDevice.Capture(null); } }
private void OnContainerMouseMove(object sender, wpf::System.Windows.Input.MouseEventArgs e) { e.Handled = MouseDevice.ProcessRawEvent(new RawMouseEventArgs(converter.ConvertBack(e.GetPosition(container)), GetTimestamp())); }