title: how to get grid children by its row and column in wpf?
body: <pre><code>&lt;Grid x:Name="LayoutRoot" HorizontalAlignment="Center" VerticalAlignment="Center" &gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="Auto"/&gt;
          &lt;RowDefinition Height="Auto"/&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="Auto"/&gt;
          &lt;ColumnDefinition Width="Auto"/&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;Button Width="150" Height="50" x:Name="Btn1" Content="Button1" Grid.Row="0" Grid.Column="0"/&gt;
      &lt;Button Width="150" Height="50" x:Name="Btn2" Content="Button2" Grid.Row="0" Grid.Column="1"/&gt;
      &lt;Button Width="150" Height="50" x:Name="Btn3" Content="Button3" Grid.Row="2" Grid.Column="0"/&gt;
      &lt;Button Width="150" Height="50" x:Name="Btn4" Content="Button4" Grid.Row="2" Grid.Column="1"/&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>C# code in wpf</p>
  
  <pre><code>Visual childVisual = (Visual)VisualTreeHelper.GetChild(LayoutRoot,0);
  </code></pre>
  
  <p>With above code i can get the First child of the grid(LayoutRoot).But i want to get grid child by it's rows or columns. What should i do for that.</p>
  
  <p>Thanks in Advance.</p>