protected override RadDiagramShape CreateDiagramShape(PreviewDragStartEventArgs e) { var sourceItem = e.DragInstance as DiagramListViewVisualItem; var dataItem = sourceItem?.Data as DiagramListViewDataItem; var shape = default(WorkflowCaptureDiagramShape); switch (dataItem.Key) { case "Pipette": shape = new PipetteDiagramShape(); break; case "Incubation": shape = new IncubationDiagramShape(); break; case "Centrifugation": shape = new CentrifugationDiagramShape(); break; case "Magnetic\r\nSeparation": shape = new MagneticSeparationDiagramShape(); break; } return(shape); }
private void svc_PreviewDragStart(object sender, PreviewDragStartEventArgs e) { SnapshotDragItem dragged = e.DragInstance as SnapshotDragItem; if (dragged != null && dragged.Item is GridHeaderCellElement) { e.CanStart = true; } }
/// <summary> /// The drag drop service_ preview drag start. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> private void dragDropService_PreviewDragStart(object sender, PreviewDragStartEventArgs e) { e.CanStart = true; }
private void svc_PreviewDragStart(object sender, PreviewDragStartEventArgs e) { e.CanStart = true; }
private void dragDropService_PreviewDragStart(object sender, PreviewDragStartEventArgs e) { e.CanStart = true; }
protected override void OnPreviewDragStart(PreviewDragStartEventArgs e) { this.dragStartPoint = Cursor.Position; base.OnPreviewDragStart(e); }