Beispiel #1
0
 public void MakeColumnFixedRightTest()
 {
     using (new TreeListTestInitializer("treeListMainDemo")) {
         this.UIVerticalGridTreeListMap.SwitchToFixedColumnsDemoModule();
         DXTreeListColumnHeader uICategoryTreeListColumnHeader = UIVerticalGridTreeListMap.UIXtraTreeListFeaturesWindow3.UIPanelControl1Client.UIGcContainerClient.UIFixedColumnsCustom.UITreeList1TreeList.UICategoryTreeListColumnHeader;
         this.UIVerticalGridTreeListMap.MakeColumnFixedRight();
         Assert.IsTrue(uICategoryTreeListColumnHeader.Fixed == FixedStyle.Right);
         Assert.IsTrue(IsTreeListColumnFixed(uICategoryTreeListColumnHeader));
     }
 }
Beispiel #2
0
 public void MakeFixedColumnNotFixedTest()
 {
     using (new TreeListTestInitializer("treeListMainDemo")) {
         this.UIVerticalGridTreeListMap.SwitchToFixedColumnsDemoModule();
         this.UIVerticalGridTreeListMap.MakeFixedColumnNotFixed();
         DXTreeListColumnHeader commonNameTreeListColumnHeader = UIVerticalGridTreeListMap.UIXtraTreeListFeaturesWindow3.UIPanelControl1Client.UIGcContainerClient.UIFixedColumnsCustom.UITreeList1TreeList.
                                                                 UICommonNameTreeListColumnHeader;
         Assert.IsTrue(commonNameTreeListColumnHeader.Fixed == FixedStyle.None);
         Assert.IsFalse(IsTreeListColumnFixed(commonNameTreeListColumnHeader));
     }
 }
Beispiel #3
0
        public bool IsTreeListColumnFixed(DXTreeListColumnHeader column)
        {
            column.TreeList.LeftCoord = 0;
            column.MakeVisible();
            if (column.TreeList.LeftCoord != 0)
            {
                return(false);
            }
            column.TreeList.LeftCoord = 100500;
            int oldLeftCoord = column.TreeList.LeftCoord;

            column.MakeVisible();
            return(column.TreeList.LeftCoord == oldLeftCoord);
        }