Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit c787490

Browse files
committed
Merge pull request #510 from gumme/WpfDesignerStackPanelChange
StackPanel no longer removes properties that are used in the panel.
2 parents f2568c1 + 43aecaf commit c787490

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/StackPanelPlacementSupport.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ public override void EndPlacement(PlacementOperation operation)
8989
public override void EnterContainer(PlacementOperation operation)
9090
{
9191
base.EnterContainer(operation);
92-
foreach (var info in operation.PlacedItems) {
93-
info.Item.Properties[FrameworkElement.MarginProperty].Reset();
94-
info.Item.Properties[FrameworkElement.HorizontalAlignmentProperty].Reset();
95-
info.Item.Properties[FrameworkElement.VerticalAlignmentProperty].Reset();
96-
}
92+
9793
_rectangle.Visibility = Visibility.Visible;
9894
}
9995

0 commit comments

Comments
 (0)