コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
 public void CanInsertIntoStackPanel()
 {
     // Move parent into one of it's children, Grid into StackPanel.
     Assert.IsTrue(_stackPanelNode.CanInsert(new[] { _outline }, _outline, false));
 }
コード例 #4
0
 public void CanInsertIntoGrid()
 {
     // Check if StackPanel's button can be inserted after Grid's first button.
     Assert.IsTrue(_outline.CanInsert(new[] { _stackPanelButtonNode }, _gridButtonNode, false));
 }