WPF 如果遍历Grid中所有控件??
WPF 如果遍历Grid中所有控件??
[解决办法]
<Grid> <Grid.RowDefinitions> <RowDefinition Height="100" /> <RowDefinition Height="35"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> </Grid.ColumnDefinitions> <Button x:Name="btnClick" Margin="50,0,50,0" Grid.Row="1" Grid.Column="0" Content="Click Me" Click="btnClick_Click" /> <Grid Grid.Row="0" Grid.Column="0" x:Name="Grid1"> </Grid> </Grid>