public SilverlightCheckBox GetRowHeaderCheckBox(int iRow) { var _checkbox = (CUITControls.SilverlightCheckBox)SourceControl.Rows[iRow].GetChildren()[0].GetChildren()[0]; SilverlightCheckBox retObj = new SilverlightCheckBox("*"); retObj.WrapReady(_checkbox); return(retObj); }
private ControlBase WrapUtil(CUITControls.SilverlightControl control) { ControlBase _con = null; if (control.GetType() == typeof(CUITControls.SilverlightButton)) { _con = new SilverlightButton((CUITControls.SilverlightButton)control); } else if (control.GetType() == typeof(CUITControls.SilverlightCalendar)) { _con = new SilverlightCalendar((CUITControls.SilverlightCalendar)control); } else if (control.GetType() == typeof(CUITControls.SilverlightCell)) { _con = new SilverlightCell((CUITControls.SilverlightCell)control); } else if (control.GetType() == typeof(CUITControls.SilverlightCheckBox)) { _con = new SilverlightCheckBox((CUITControls.SilverlightCheckBox)control); } else if (control.GetType() == typeof(CUITControls.SilverlightChildWindow)) { _con = new SilverlightChildWindow((CUITControls.SilverlightChildWindow)control); } else if (control.GetType() == typeof(CUITControls.SilverlightComboBox)) { _con = new SilverlightComboBox((CUITControls.SilverlightComboBox)control); } else if (control.GetType() == typeof(CUITControls.SilverlightDataPager)) { _con = new SilverlightDataPager((CUITControls.SilverlightDataPager)control); } else if (control.GetType() == typeof(CUITControls.SilverlightDatePicker)) { _con = new SilverlightDatePicker((CUITControls.SilverlightDatePicker)control); } else if (control.GetType() == typeof(CUITControls.SilverlightEdit)) { _con = new SilverlightEdit((CUITControls.SilverlightEdit)control); } else if (control.GetType() == typeof(CUITControls.SilverlightHyperlink)) { _con = new SilverlightHyperlink((CUITControls.SilverlightHyperlink)control); } else if (control.GetType() == typeof(CUITControls.SilverlightImage)) { _con = new SilverlightImage((CUITControls.SilverlightImage)control); } else if (control.GetType() == typeof(CUITControls.SilverlightLabel)) { _con = new SilverlightLabel((CUITControls.SilverlightLabel)control); } else if (control.GetType() == typeof(CUITControls.SilverlightList)) { _con = new SilverlightList((CUITControls.SilverlightList)control); } else if (control.GetType() == typeof(CUITControls.SilverlightListItem)) { _con = new SilverlightListItem((CUITControls.SilverlightListItem)control); } else if (control.GetType() == typeof(CUITControls.SilverlightRadioButton)) { _con = new SilverlightRadioButton((CUITControls.SilverlightRadioButton)control); } else if (control.GetType() == typeof(CUITControls.SilverlightSlider)) { _con = new SilverlightSlider((CUITControls.SilverlightSlider)control); } else if (control.GetType() == typeof(CUITControls.SilverlightTab)) { _con = new SilverlightTab((CUITControls.SilverlightTab)control); } else if (control.GetType() == typeof(CUITControls.SilverlightTabItem)) { _con = new SilverlightTabItem((CUITControls.SilverlightTabItem)control); } else if (control.GetType() == typeof(CUITControls.SilverlightTable)) { _con = new SilverlightTable((CUITControls.SilverlightTable)control); } else if (control.GetType() == typeof(CUITControls.SilverlightText)) { _con = new SilverlightText((CUITControls.SilverlightText)control); } else if (control.GetType() == typeof(CUITControls.SilverlightTree)) { _con = new SilverlightTree((CUITControls.SilverlightTree)control); } else { throw new Exception(string.Format("WrapUtil: '{0}' is not supported.", control.GetType())); } return(_con); }