我有一个银光束带。我使用 AutoCompleteBox 作为单元格编辑模板的列之一。我声明如下
<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>
当我试图在后面的代码中访问 TestField 时,它不可用。为什么在后面的代码中无法访问此变量?