Browse Source

Fix Selection after Delete in WPF Designer

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

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

@ -63,9 +63,12 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
{ {
InfoTextEnterArea.Stop(ref infoTextEnterArea); InfoTextEnterArea.Stop(ref infoTextEnterArea);
if (operation.Type != PlacementType.Delete)
{
this.ExtendedItem.Services.Selection.SetSelectedComponents(null); this.ExtendedItem.Services.Selection.SetSelectedComponents(null);
this.ExtendedItem.Services.Selection.SetSelectedComponents(operation.PlacedItems.Select(x => x.Item).ToList()); 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