ComboBoxItems not found when using ControlTemplate

2 posts, 0 answers
  1. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 15 Apr 2014 Link to this post


    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.IsDropDownOpen = true;            
               //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

  2. Konstantin Petkov
    Konstantin Petkov avatar
    1911 posts

    Posted 17 Apr 2014 Link to this post


    For everyone, this is duplicate of the thread here.

    Konstantin Petkov
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top