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

Commit ffd6ad0

Browse files
author
tbulle
committed
Remove unnecessary Canvas positioning
1 parent 709808f commit ffd6ad0

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
@@ -162,12 +162,6 @@ internal static bool AddItemWithDefaultSize(DesignItem container, DesignItem cre
162162

163163
internal static bool AddItemWithCustomSize(DesignItem container, DesignItem createdItem, Point position, Size size)
164164
{
165-
bool b = createdItem.View.GetType().AnyIsInNamespace("System.Windows.Shapes");
166-
if (b)
167-
{
168-
createdItem.View.SetValue(Canvas.LeftProperty, position.X);
169-
createdItem.View.SetValue(Canvas.TopProperty, position.Y);
170-
}
171165
PlacementOperation operation = PlacementOperation.TryStartInsertNewComponents(
172166
container,
173167
new DesignItem[] { createdItem },

0 commit comments

Comments
 (0)