From d3ad6d524a08e26aa3deab7546bb517885794b3a Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 16 Jun 2016 07:42:15 -0700 Subject: [PATCH] Provide an option to modify snap behavior globally (#57) * Made changes to provide an option for drag selecting by default instead of panning by default in the ZoomControl. Modified some of the dragging code to allow dragging based on selecting and dragging an edge. This works for a case where selecting an edge triggers automatic tagging of the vertices it's connected to. Then dragging the edge propogates to movement of the connected VertexControl objects. * Revert "Made changes to provide an option for drag selecting by default instead of panning by default in the ZoomControl." This reverts commit 049aebf8921c2b263ae7ed52b6c140a6e041031e. * Allow global changes to snapping behavior while maintaining the ability to get custom snapping behavior on individual objects. --- .../ShowcaseApp.WPF/Pages/DynamicGraph.xaml | 3 +- .../Pages/DynamicGraph.xaml.cs | 54 ++++++- GraphX.Controls/Behaviours/DragBehaviour.cs | 143 +++++++++++++++--- 3 files changed, 178 insertions(+), 22 deletions(-) diff --git a/Examples/ShowcaseApp.WPF/Pages/DynamicGraph.xaml b/Examples/ShowcaseApp.WPF/Pages/DynamicGraph.xaml index 785ca53..d3bcc51 100644 --- a/Examples/ShowcaseApp.WPF/Pages/DynamicGraph.xaml +++ b/Examples/ShowcaseApp.WPF/Pages/DynamicGraph.xaml @@ -59,8 +59,9 @@