Grid.SetColumnSpan.
In Vb but you should get the point.
Dim SpannedButton As New System.Windows.Controls.Button
SpannedButton.HorizontalAlignment = Windows.HorizontalAlignment.Stretch
SpannedButton.Content = "Spanned Three"
Windows.Controls.Grid.SetColumn(SpannedButton, 0)
Windows.Controls.Grid.SetRow(SpannedButton, 0)
Windows.Controls.Grid.SetColumnSpan(SpannedButton, 3)
Grid1.Children.Add(SpannedButton)