Hello
I'm having an issue where the ComboBoxItems are not being recognized in Silverlight. I am using a standard ComboBox with the attached style.
Other Combo Boxes seem to work find but this one uses a Control template with some additional features. When I view it in SilverlightSpy I can see the items fine (see attached).
My code
var combo = _silverlightApp.Find.ByName<ComboBox>("cbFacilityTypes");
//Items = null
I have tired
combo.Find.ByType<ComboBoxItem>();
combo.Find.ByType<TextBox>();
combo.IsDropDownOpen = true;
combo.Refresh();
combo.ItemsPopup.Refresh();
//looping through children the ScrollContentPresenter is always empty.
//in the screen I can see it expanding the right combo but it just cant find any of the child controls but I can see them in SilverlightSpy
Any help much appreciated
Thanks
I'm having an issue where the ComboBoxItems are not being recognized in Silverlight. I am using a standard ComboBox with the attached style.
Other Combo Boxes seem to work find but this one uses a Control template with some additional features. When I view it in SilverlightSpy I can see the items fine (see attached).
My code
var combo = _silverlightApp.Find.ByName<ComboBox>("cbFacilityTypes");
//Items = null
I have tired
combo.Find.ByType<ComboBoxItem>();
combo.Find.ByType<TextBox>();
combo.IsDropDownOpen = true;
combo.Refresh();
combo.ItemsPopup.Refresh();
//looping through children the ScrollContentPresenter is always empty.
//in the screen I can see it expanding the right combo but it just cant find any of the child controls but I can see them in SilverlightSpy
Any help much appreciated
Thanks