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

[Solved] VisualTreeHelper to get the child of AutocompleteBox

0 Answers 134 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
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)

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