|
|
@ -176,9 +176,6 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions |
|
|
|
operation.CurrentContainerBehavior.BeforeSetPosition(operation); |
|
|
|
operation.CurrentContainerBehavior.BeforeSetPosition(operation); |
|
|
|
operation.CurrentContainerBehavior.SetPosition(info); |
|
|
|
operation.CurrentContainerBehavior.SetPosition(info); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ResetWidthHeightProperties(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void CommitOperation() |
|
|
|
void CommitOperation() |
|
|
@ -204,19 +201,18 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions |
|
|
|
_selectedThumbs[i].Y = points[i].Y; |
|
|
|
_selectedThumbs[i].Y = points[i].Y; |
|
|
|
} |
|
|
|
} |
|
|
|
ExtendedItem.Properties.GetProperty(pl != null ? Polyline.PointsProperty : Polygon.PointsProperty).SetValue(points); |
|
|
|
ExtendedItem.Properties.GetProperty(pl != null ? Polyline.PointsProperty : Polygon.PointsProperty).SetValue(points); |
|
|
|
ResetWidthHeightProperties(); |
|
|
|
|
|
|
|
operation.Commit(); |
|
|
|
operation.Commit(); |
|
|
|
|
|
|
|
|
|
|
|
operation = null; |
|
|
|
operation = null; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
changeGroup.Commit(); |
|
|
|
if (changeGroup != null) |
|
|
|
|
|
|
|
changeGroup.Commit(); |
|
|
|
changeGroup = null; |
|
|
|
changeGroup = null; |
|
|
|
} |
|
|
|
} |
|
|
|
_isResizing = false; |
|
|
|
_isResizing = false; |
|
|
|
|
|
|
|
|
|
|
|
ResetWidthHeightProperties(); |
|
|
|
|
|
|
|
Invalidate(); |
|
|
|
Invalidate(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -339,17 +335,13 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions |
|
|
|
|
|
|
|
|
|
|
|
Invalidate(); |
|
|
|
Invalidate(); |
|
|
|
|
|
|
|
|
|
|
|
ResetWidthHeightProperties(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ResetThumbs(); |
|
|
|
ResetThumbs(); |
|
|
|
_isDragging = false; |
|
|
|
_isDragging = false; |
|
|
|
|
|
|
|
|
|
|
|
extendedItemArray[0] = ExtendedItem; |
|
|
|
extendedItemArray[0] = ExtendedItem; |
|
|
|
ExtendedItem.PropertyChanged += OnPropertyChanged; |
|
|
|
ExtendedItem.PropertyChanged += OnPropertyChanged; |
|
|
|
Services.Selection.PrimarySelectionChanged += OnPrimarySelectionChanged; |
|
|
|
|
|
|
|
resizeBehavior = PlacementOperation.GetPlacementBehavior(extendedItemArray); |
|
|
|
resizeBehavior = PlacementOperation.GetPlacementBehavior(extendedItemArray); |
|
|
|
UpdateAdornerVisibility(); |
|
|
|
UpdateAdornerVisibility(); |
|
|
|
OnPrimarySelectionChanged(null, null); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|