From 65b81910699b552290c05404cf60a2361e8707f1 Mon Sep 17 00:00:00 2001 From: Kumar Devvrat Date: Sun, 25 Jul 2010 21:15:08 +0000 Subject: [PATCH] - Readjust styles - Add offset in placement of the margin handles. - Fix several bugs in MarginHandle and add unit tests. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/wpfdesigner@6226 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Controls/ControlStyles.xaml | 92 +++++++------ .../Project/Controls/MarginHandle.cs | 122 ++++++++++++++---- .../Extensions/BorderForInvisibleControl.cs | 2 +- .../SelectedElementRectangleExtension.cs | 2 +- .../Tests/Designer/MarginHandleTests.cs | 103 +++++++++++++++ .../Tests/Designer/ModelTestHelper.cs | 9 ++ .../Tests/Designer/PlacementTests.cs | 12 +- .../Tests/WpfDesign.Tests.csproj | 1 + 8 files changed, 276 insertions(+), 67 deletions(-) create mode 100644 src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/MarginHandleTests.cs diff --git a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/ControlStyles.xaml b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/ControlStyles.xaml index 7ced99ea72..414f0f7a8b 100644 --- a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/ControlStyles.xaml +++ b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/ControlStyles.xaml @@ -1,11 +1,15 @@  + + + -