User Tools

Site Tools


This is an old revision of the document!

DataTemplate in XAML

DataTemplate is usually used with list controls such as ItemsControl, GridView, or ListView.

Examples of a DataTemplates defined inline by setting the ItemTemplate property. The ItemTemplate property is of type DataTemplate:

            <Rectangle Width="100" Height="50" Margin="10">
                    <SolidColorBrush Color="{Binding}" />
notes/uwp/datatemplate.1482327454.txt.gz · Last modified: 2020/08/26 (external edit)