Gets or sets the template to use to display the contents of a column cell.
Assembly: PresentationFramework (in PresentationFramework.dll)
The following properties all bind to and display the content of a column cell, and are listed here in their order of precedence, from highest to lowest:
One of the following: StaticResource, or DynamicResource. See XAML Resources.
The key that identifies the template being requested. The key refers to an existing resource in a ResourceDictionary.
Property element syntax is technically possible, but not recommended. See Inline Styles and Templates. A binding reference using or is also possible, but uncommon.
<DataTemplate x:Key="myCellTemplateMonth"> <DockPanel> <TextBlock Foreground="DarkBlue" HorizontalAlignment="Center"> <TextBlock.Text> <Binding Path="Month"/> </TextBlock.Text> </TextBlock> </DockPanel> </DataTemplate>
Available since 3.0