* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.5 KiB
title, ms.date, helpviewer_keywords, ms.assetid
| title | ms.date | helpviewer_keywords | ms.assetid | |||
|---|---|---|---|---|---|---|
| How to: Define a Table with XAML | 03/30/2017 |
|
83f2dc58-437e-4cdc-b5dd-0019810c7a85 |
How to: Define a Table with XAML
The following example demonstrates how to define a xref:System.Windows.Documents.Table using [!INCLUDETLA#tla_xaml]. The example table has four columns (represented by xref:System.Windows.Documents.TableColumn elements) and several rows (represented by xref:System.Windows.Documents.TableRow elements) containing data as well as title, header, and footer information. Rows must be contained in a xref:System.Windows.Documents.TableRowGroup element. Each row in the table is comprised of one or more cells (represented by xref:System.Windows.Documents.TableCell elements). Content in a table cell must be contained in a xref:System.Windows.Documents.Block element; in this case xref:System.Windows.Documents.Paragraph elements are used. The table also hosts a hyperlink (represented by the xref:System.Windows.Documents.Hyperlink element) in the footer row.
Example
[!code-xamlTableSnippetsXAML#_TableXAML]
The following figure shows how the table defined in this example renders:
