'Declaration Public Shared ReadOnly DisplayTemplateProperty As DependencyProperty
public static readonly DependencyProperty DisplayTemplateProperty
In C#:
In VB.NET:
This dependency property identifier can be used when creating custom classes derived from TemplateField.
public class CustomTemplateField : TemplateField { public new DataTemplate DisplayTemplate { get { return (DataTemplate)GetValue(TemplateField.DisplayTemplateProperty); } set { SetValue(TemplateField.DisplayTemplateProperty, value); } } }
Class CustomTemplateField
Inherits TemplateField
Private _DisplayTemplate As DataTemplate
Public Overloads Property DisplayTemplate() As DataTemplate
Get
Return GetValue(TemplateField.DisplayTemplateProperty)
End Get
Set(ByVal value As DataTemplate)
SetValue(TemplateField.DisplayTemplateProperty, value)
End Set
End Property
End ClassThis dependency property identifier can be used when creating custom classes derived from TemplateField.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2