VisualTreeHelper to get the child of AutocompleteBox

1 posts, 0 answers
  1. Abhi
    Abhi avatar
    38 posts
    Member since:
    Nov 2012

    Posted 10 Jan 2013 Link to this post

         I am using the below code in base class to get the child of autocompletebox 

    TextBox textbox = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(autoCmplteBox1, 0), 0) as TextBox;

    but it is returning null value to the textbox
    pls give any solution for this (I used this by using MVVM-Pattern)

Back to Top