public void ResizeBandViaDraggingRightEdgeInAdvancedBandedGridViewModuleTest() { using (new GridsTestInitializer()) { this.UIMap.SwitchToAlternateViewsDemoModule(); DXGridBand uIGbMainGridBand = UIMap.UITheXtraGridSuitebyDeWindow.UIPanelControl1Client.UIGcContainerClient.UIViewStylesCustom.UIGridControl1Table.UIGbMainGridBand; DXGridBand uIGbPerfomanceGridBand = UIMap.UITheXtraGridSuitebyDeWindow.UIPanelControl1Client.UIGcContainerClient.UIViewStylesCustom.UIGridControl1Table.UIGbPerfomanceGridBand; Size oldSizeGridBandMain = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIGbMainGridBand.GetProperty("Size"), typeof(Size).FullName); Size oldSizeGridBandPerformance = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIGbPerfomanceGridBand.GetProperty("Size"), typeof(Size).FullName); this.UIMap.ResizeBandViaDraggingRightEdgeOnAdvancedBandedGridView(); Size newSizeGridBandMain = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIGbMainGridBand.GetProperty("Size"), typeof(Size).FullName); Size newSizeGridBandPerformance = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIGbPerfomanceGridBand.GetProperty("Size"), typeof(Size).FullName); Assert.IsTrue(newSizeGridBandMain.Width < oldSizeGridBandMain.Width && newSizeGridBandPerformance.Width == oldSizeGridBandPerformance.Width); } }
public void ResizeFixedBandTest() { using (new GridsTestInitializer()) { this.UIMap.SwitchToFixedBandsDemoModule(); DXGridBand uIGridBand1GridBand = UIMap.UIXtraGridFeaturesDemoWindow3.UIPanelControl1Client.UIGcContainerClient.UIFixedBandsCustom.UIXtraTabControl1TabList.UIXtraTabPage1Client.UIGridControl1Table.UIGridBand1GridBand; DXColumnHeader uIGrColumnMakerColumnHeader = UIMap.UIXtraGridFeaturesDemoWindow3.UIPanelControl1Client.UIGcContainerClient.UIFixedBandsCustom.UIXtraTabControl1TabList.UIXtraTabPage1Client.UIGridControl1Table.UIGrColumnMakerColumnHeader; Size oldSizeGridBand1 = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIGridBand1GridBand.GetProperty("Size"), typeof(Size).FullName); Size oldSizeGrColumn = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIGrColumnMakerColumnHeader.GetProperty("Size"), typeof(Size).FullName); this.UIMap.ResizeFixedBand(); Size newSizeGridBand1 = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIGridBand1GridBand.GetProperty("Size"), typeof(Size).FullName); Size newSizeGrColumn = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIGrColumnMakerColumnHeader.GetProperty("Size"), typeof(Size).FullName); Assert.IsTrue(newSizeGridBand1.Width > oldSizeGridBand1.Width && newSizeGrColumn.Width > oldSizeGrColumn.Width); } }