|
|
|
|
@ -38,12 +38,9 @@ namespace ICSharpCode.WpfDesign.Designer
@@ -38,12 +38,9 @@ namespace ICSharpCode.WpfDesign.Designer
|
|
|
|
|
_rootItem.AddBehavior(typeof(IRootPlacementBehavior),this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public bool CanPlace(System.Collections.Generic.ICollection<DesignItem> childItems, PlacementType type, PlacementAlignment position) |
|
|
|
|
public bool CanPlace(IEnumerable<DesignItem> childItems, PlacementType type, PlacementAlignment position) |
|
|
|
|
{ |
|
|
|
|
return type == PlacementType.Resize && |
|
|
|
|
(position == PlacementAlignment.Right |
|
|
|
|
|| position == PlacementAlignment.BottomRight |
|
|
|
|
|| position == PlacementAlignment.Bottom); |
|
|
|
|
return type == PlacementType.Resize && (position == PlacementAlignment.Right || position == PlacementAlignment.BottomRight || position == PlacementAlignment.Bottom); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void BeginPlacement(PlacementOperation operation) |
|
|
|
|
|