Example #1
0
 public void HorizontalHandleStyleSetViaCode()
 {
     GridSplitter splitter = new GridSplitter();
     Style s = new Style(typeof(System.Windows.Controls.Primitives.ToggleButton));
     splitter.HorizontalHandleStyle = s;
     Assert.AreEqual(s, splitter.GetValue(GridSplitter.HorizontalHandleStyleProperty), "Assigning a new style to the HandleStyleProperty should set the style.");
 }
Example #2
0
        public void CheckDefaults()
        {
            Berico.Windows.Controls.GridSplitter splitter = new Berico.Windows.Controls.GridSplitter();

            Assert.AreEqual(splitter.CollapseMode, GridSplitterCollapseMode.None, "CollapseMode should be None, by default.");
            Assert.IsFalse(splitter.IsCollapsed, "IsCollapsed should be false, by default.");
            Assert.IsTrue(splitter.IsAnimated, "IsAnimated should be true, by default.");
        }
Example #3
0
        public void CheckDefaults()
        {
            Berico.Windows.Controls.GridSplitter splitter = new Berico.Windows.Controls.GridSplitter();

            Assert.AreEqual(splitter.CollapseMode, GridSplitterCollapseMode.None, "CollapseMode should be None, by default.");
            Assert.IsFalse(splitter.IsCollapsed, "IsCollapsed should be false, by default.");
            Assert.IsTrue(splitter.IsAnimated, "IsAnimated should be true, by default.");
        }
Example #4
0
 public void InstantiateGridSplitterCode()
 {
     Berico.Windows.Controls.GridSplitter splitter = new Berico.Windows.Controls.GridSplitter();
     Assert.IsNotNull(splitter, "GridSplitter construction should succeed.");
 }
Example #5
0
 public void InstantiateGridSplitterCode()
 {
     Berico.Windows.Controls.GridSplitter splitter = new Berico.Windows.Controls.GridSplitter();
     Assert.IsNotNull(splitter, "GridSplitter construction should succeed.");
 }