protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { base.OnMouseLeftButtonDown(e); var renderer = this.Renderer as StoryboardLayer; var storyboard = renderer.Storyboard; OnDragStarting(); // Push Pending Drag Line PushPendingDragLine(); BindRequest request = CreateBindRequest(); DragDrop.DoDragDrop(this, request, DragDropEffects.None); if (request.Handled) { OnDragEnd(request); } else { // Release Pending Drag Line PopPendingDragLine(); } }
private void OnBind(BindRequest request) { // Release Pending Drag Line dragLine?.Release(); // Bind To Data Model this.Binder.Bind(request.Source.Binder); // Notice this.OnBind(request.Source); }