Browse Source

StackPanel no longer removes properties that are used in the panel.

pull/510/head
gumme 11 years ago
parent
commit
43aecafb42
  1. 6
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/StackPanelPlacementSupport.cs

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

@ -89,11 +89,7 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions @@ -89,11 +89,7 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
public override void EnterContainer(PlacementOperation operation)
{
base.EnterContainer(operation);
foreach (var info in operation.PlacedItems) {
info.Item.Properties[FrameworkElement.MarginProperty].Reset();
info.Item.Properties[FrameworkElement.HorizontalAlignmentProperty].Reset();
info.Item.Properties[FrameworkElement.VerticalAlignmentProperty].Reset();
}
_rectangle.Visibility = Visibility.Visible;
}

Loading…
Cancel
Save