Browse Source

Polygon/Polyline should be Resizeable

-> todo: Recalculate the Points when Polyline is stretched
pull/637/head
jkuehner 11 years ago
parent
commit
b928039f66
  1. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/LineExtensionBase.cs
  2. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/PolyLineHandlerExtension.cs

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/LineExtensionBase.cs

@ -186,8 +186,8 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
protected void ResetWidthHeightProperties() protected void ResetWidthHeightProperties()
{ {
ExtendedItem.Properties.GetProperty(FrameworkElement.HeightProperty).Reset(); // ExtendedItem.Properties.GetProperty(FrameworkElement.HeightProperty).Reset();
ExtendedItem.Properties.GetProperty(FrameworkElement.WidthProperty).Reset(); // ExtendedItem.Properties.GetProperty(FrameworkElement.WidthProperty).Reset();
} }
} }
} }

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/PolyLineHandlerExtension.cs

@ -38,8 +38,8 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
/// <summary> /// <summary>
/// Description of PolyLineHandlerExtension. /// Description of PolyLineHandlerExtension.
/// </summary> /// </summary>
[ExtensionFor(typeof(Polyline), OverrideExtensions = new Type[] { typeof(ResizeThumbExtension), typeof(QuickOperationMenuExtension), })] [ExtensionFor(typeof(Polyline))]
[ExtensionFor(typeof(Polygon), OverrideExtensions = new Type[] { typeof(ResizeThumbExtension), typeof(QuickOperationMenuExtension), })] [ExtensionFor(typeof(Polygon))]
internal class PolyLineHandlerExtension : LineExtensionBase, IKeyDown, IKeyUp internal class PolyLineHandlerExtension : LineExtensionBase, IKeyDown, IKeyUp
{ {
private readonly Dictionary<int, Bounds> _selectedThumbs = new Dictionary<int, Bounds>(); private readonly Dictionary<int, Bounds> _selectedThumbs = new Dictionary<int, Bounds>();

Loading…
Cancel
Save