silverlight嵌套控件之后,为什么访问不了嵌套里面的控件?
<sdk:DataGrid Name="gdTemplateParam" AutoGenerateColumns="False" >
<sdk:DataGrid.Columns>
<sdk:DataGridTextColumn CanUserReorder="True" CanUserResize="True" Width="20*" CanUserSort="True" Header="参数名称" IsReadOnly="True" />
<sdk:DataGridTextColumn CanUserReorder="True" CanUserResize="True" Width="20*" CanUserSort="True" Header="参数类型" IsReadOnly="True" />
<sdk:DataGridTemplateColumn Header="参数值" Width="20*">
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Grid >
<TextBlock x:Name="txtValue" VerticalAlignment="Center" ></TextBlock>
<Button x:Name="btnModifyParamValue" Content="..." HorizontalAlignment="Right" ></Button>
</Grid>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
</sdk:DataGrid.Columns>
</sdk:DataGrid>