Example #1
0
        public void MovingItems()
        {
            string obj1 = "object 1";
            string obj2 = "object 2";
            string obj3 = "object 3";

            IDockTileManager manager = new DockTileManagerViewModel(obj1);
            manager.AddTile(obj1, obj2, DockTileDirection.Left);
            manager.AddTile(obj1, obj3, DockTileDirection.Right);
            manager.AddTile(obj2, obj3, DockTileDirection.Right);
        }
Example #2
0
 public MainViewModel()
 {
     var item1 = new SampleViewModel() { Color = "Pink", Name = "1" };
     var item2 = new SampleViewModel() { Color = "Red", Name = "2" };
     var item3 = new SampleViewModel() { Color = "Blue", Name = "3" };
     var item4 = new SampleViewModel() { Color = "LightBlue", Name = "4" };
     View = new DockTileManagerViewModel(item1);
     View.AddTile(item1, item2, DockTileDirection.Top);
     View.AddTile(item1, item3, DockTileDirection.Right);
     View.AddTile(item1, item4, DockTileDirection.Right);
 }
Example #3
0
        public void AddingItems()
        {
            string obj1 = "object 1";
            string obj2 = "object 2";
            string obj3 = "object 3";

            IDockTileManager manager = new DockTileManagerViewModel(obj1);
            manager.AddTile(obj1, obj2, DockTileDirection.Left);
            manager.AddTile(obj1, obj3, DockTileDirection.Right);
            Assert.AreEqual(true, manager.TreeRoot is RootDockTile);
            Assert.AreEqual(true, (manager.TreeRoot as RootDockTile).Item is ISplitDockTile);
            manager.AddTile(obj2, obj2, DockTileDirection.Right);
        }