Hi,
I want to set "StyleLibraryName" property to all infragistics controls on a specific form. Is there any way (like looping or else) without setting this property individually. Thanks,
Bharat Jangir
for solution, i am using this code:private void InitializeComponent(){ SetThemePropertyToInfragisticsControls(this);}
public void SetThemePropertyToInfragisticsControls(Control control){ PropertyDescriptorCollection tempObject = TypeDescriptor.GetProperties(control); PropertyDescriptor tempObjectProperty = tempObject.Find("StyleLibraryName", true); if (tempObjectProperty != null) { tempObjectProperty.SetValue(control, "TempTheme"); } foreach (Control child in control.Controls) { SetThemePropertyToInfragisticsControls(child); }}