xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="WpfApplication1.Window1"
Title="Add Content to a Table">
TableRow
//File:Window.xaml.vb
Imports System
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Documents
Namespace WpfApplication1
Public Partial Class Window1
Inherits Window
Public Sub AddRow(sender As Object, e As RoutedEventArgs)
Dim row As New TableRow()
trg1.Rows.Add(row)
Dim para As New Paragraph()
para.Inlines.Add("A new Row and Cell have been Added to the Table")
Dim cell As New TableCell(para)
row.Cells.Add(cell)
End Sub
End Class
End Namespace