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 @@ -186,8 +186,8 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
protected void ResetWidthHeightProperties()
{
ExtendedItem.Properties.GetProperty(FrameworkElement.HeightProperty).Reset();
ExtendedItem.Properties.GetProperty(FrameworkElement.WidthProperty).Reset();
// ExtendedItem.Properties.GetProperty(FrameworkElement.HeightProperty).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 @@ -38,8 +38,8 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
/// <summary>
/// Description of PolyLineHandlerExtension.
/// </summary>
[ExtensionFor(typeof(Polyline), OverrideExtensions = new Type[] { typeof(ResizeThumbExtension), typeof(QuickOperationMenuExtension), })]
[ExtensionFor(typeof(Polygon), OverrideExtensions = new Type[] { typeof(ResizeThumbExtension), typeof(QuickOperationMenuExtension), })]
[ExtensionFor(typeof(Polyline))]
[ExtensionFor(typeof(Polygon))]
internal class PolyLineHandlerExtension : LineExtensionBase, IKeyDown, IKeyUp
{
private readonly Dictionary<int, Bounds> _selectedThumbs = new Dictionary<int, Bounds>();

Loading…
Cancel
Save