Childwindow visualtree not getting updated

3 posts, 0 answers
  1. Kiran
    Kiran avatar
    56 posts
    Member since:
    Dec 2008

    Posted 27 Jul 2010 Link to this post


    I am using WebAii 2010.1 for automating silverlight 3 application.
    In my application i am having childwindow in which i am loading a wizard like control.
    In that wizard controls are created dynamically.

    But i am not able to get those dynamically created controls.
    I tried refreshing the visual tree like below but not working.




    Please help me its urgent.....
    Thanks in advance

  2. Missing user
    Missing user avatar

    Posted 27 Jul 2010 Link to this post

    Hi Kiran,

    Just to confirm, did you add the PopupTracker() as described in this blog? And are you checking the count after th windows are opened? The windows are not enumerated unless they are launched.

    Nelson Sin
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Kiran
    Kiran avatar
    56 posts
    Member since:
    Dec 2008

    Posted 28 Jul 2010 Link to this post


    I got the issue and its resolved now.
    I was using the below code
    Button btnShowPopup = CurrentApplication.Find.ByName<Button>("btnShowCreateUserWindow");
              VisualTreeHost popupControl = CurrentApplication.Popups.FirstOrDefault();
              Button btnCreateControl = popupControl.VisualTree.Find.ByName<Button>("btNext");
              TextBox txtBox = popupControl.VisualTree.Find.ByName<TextBox>("txtBox");

    The mistake i have done is i took a reference of the popup in the variable popupControl.
    popupControl reference will not get refreshed. I can do either of the statement to fix this. 


    Thanks for your reply Nelson.

Back to Top