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

VisualTreeHelper to get the child of AutocompleteBox

0 Answers 77 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Abhi
Top achievements
Rank 1
Abhi asked on 10 Jan 2013, 07:11 AM
Hi,
     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)

No answers yet. Maybe you can help?

Tags
AutoCompleteBox
Asked by
Abhi
Top achievements
Rank 1
Share this question
or