سؤال

I have a silverlight gird. One of the columns I use AutoCompleteBox as cell edit template. I declare it as follows

<c1:Column.CellEditingTemplate>
    <DataTemplate>
      <sdk:AutoCompleteBox x:Name="TestField" Text="{Binding ReferencePath,Mode=TwoWay}"                                       Populating="tester_Populating" MinimumPrefixLength="0" IsDropDownOpen="True" LostFocus="tester_LostFocus"/>
                    </DataTemplate>
                </c1:Column.CellEditingTemplate>

When I tried to access TestField in the code behind, it is not available. Why is this variable not accessible in the code behind?

هل كانت مفيدة؟

المحلول

Found the answer in the following link,

http://forums.silverlight.net/forums/p/200237/467179.aspx

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top