Browse Source

Fix Selection after Delete in WPF Designer

pull/692/head
jogibear9988 11 years ago
parent
commit
db2a41dcba
  1. 7
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/DefaultPlacementBehavior.cs

7
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/DefaultPlacementBehavior.cs

@ -63,8 +63,11 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
{ {
InfoTextEnterArea.Stop(ref infoTextEnterArea); InfoTextEnterArea.Stop(ref infoTextEnterArea);
this.ExtendedItem.Services.Selection.SetSelectedComponents(null); if (operation.Type != PlacementType.Delete)
this.ExtendedItem.Services.Selection.SetSelectedComponents(operation.PlacedItems.Select(x => x.Item).ToList()); {
this.ExtendedItem.Services.Selection.SetSelectedComponents(null);
this.ExtendedItem.Services.Selection.SetSelectedComponents(operation.PlacedItems.Select(x => x.Item).ToList());
}
} }
public virtual Rect GetPosition(PlacementOperation operation, DesignItem item) public virtual Rect GetPosition(PlacementOperation operation, DesignItem item)

Loading…
Cancel
Save