Browse Source

Fix Selection after Delete in WPF Designer

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

Loading…
Cancel
Save