This is a migrated thread and some comments may be shown as answers.

ComboBoxItems not found when using ControlTemplate

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
donovan
Top achievements
Rank 1
donovan asked on 16 Apr 2014, 04:51 AM
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







1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 17 Apr 2014, 09:57 AM
Hi,

For everyone, this is duplicate of the thread here.

Regards,
Konstantin Petkov
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
donovan
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or