private void TimelineBand_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { _isDragging = true; _dragPoint = e.GetPosition(null); RoutedEventArgs timelineBandStartDragEventArgs = new RoutedEventArgs(TimelineBandStartDragEvent, this); RaiseEvent(timelineBandStartDragEventArgs); if (e.ClickCount >= 2) { Point clickPoint = e.GetPosition(_canvas); DateTime clickDateTime = CurrentDateTime.AddTicks((long)((clickPoint.X - _canvas.ActualWidth / 2) / TimeScaleUnitWidth * TimelineHelper.GetScaleUnitTicks(TimeScaleUnit))); TimelineBandDoubleClickEventArgs args = new TimelineBandDoubleClickEventArgs(TimelineBandDoubleClickEvent, this, clickDateTime); RaiseEvent(args); } CaptureMouse(); }
private void TimelineBand_TimelineBandDoubleClick(object sender, TimelineBandDoubleClickEventArgs e) { //timelineBandMain.CurrentDateTime = e.ClickDateTime; }