public void CanInsertIntoButton() { /* Insert Image into the Grid's button. This has now to be true because a button can now * add element's by moving elements * See DefaultPlacementBehavior.CanContentControlAdd() */ Assert.IsTrue(_gridButtonNode.CanInsert(new[] { _stackPanelImageNode }, null, false)); }
public void CanInsertIntoButton() { /* Insert Image into the Grid's button. This has to be false since some of the * ContentControl are not allowed to add element's by moving elements * See DefaultPlacementBehavior.CanContentControlAdd() */ Assert.IsFalse(_gridButtonNode.CanInsert(new[] { _stackPanelImageNode }, null, false)); }
public void CanInsertIntoStackPanel() { // Move parent into one of it's children, Grid into StackPanel. Assert.IsTrue(_stackPanelNode.CanInsert(new[] { _outline }, _outline, false)); }
public void CanInsertIntoGrid() { // Check if StackPanel's button can be inserted after Grid's first button. Assert.IsTrue(_outline.CanInsert(new[] { _stackPanelButtonNode }, _gridButtonNode, false)); }