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

Commit 6f7ebb5

Browse files
author
tbulle
committed
Merge branch 'WpfDesignerControlExtensions'
2 parents 195d403 + ffd6ad0 commit 6f7ebb5

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Services/CreateComponentTool.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,6 @@ internal static bool AddItemWithDefaultSize(DesignItem container, DesignItem cre
177177

178178
internal static bool AddItemWithCustomSize(DesignItem container, DesignItem createdItem, Point position, Size size)
179179
{
180-
bool b = createdItem.View.GetType().AnyIsInNamespace("System.Windows.Shapes");
181-
if (b)
182-
{
183-
createdItem.View.SetValue(Canvas.LeftProperty, position.X);
184-
createdItem.View.SetValue(Canvas.TopProperty, position.Y);
185-
}
186180
PlacementOperation operation = PlacementOperation.TryStartInsertNewComponents(
187181
container,
188182
new DesignItem[] { createdItem },

0 commit comments

Comments
 (0)