NewRowTemplateBehavior Class
Provides attached behavior for System.Windows.Controls.DataGrid controls to customize the new row template.
public static class NewRowTemplateBehavior
- Inheritance:
- System.Object Object
Methods
GetDefaultTemplate(DataGrid)
Gets the value of the DefaultTemplateProperty attached property for a specified System.Windows.Controls.DataGrid.
public static ControlTemplate GetDefaultTemplate(DataGrid obj)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.Controls.DataGrid | The object to which the attached property is retrieved. |
Returns
- System.Windows.Controls.ControlTemplate:
The default System.Windows.Controls.ControlTemplate to use for rows in a System.Windows.Controls.DataGrid.
GetTemplate(DataGrid)
Gets the value of the TemplateProperty attached property for a specified System.Windows.Controls.DataGrid.
public static ControlTemplate GetTemplate(DataGrid obj)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.Controls.DataGrid | The object to which the attached property is retrieved. |
Returns
- System.Windows.Controls.ControlTemplate:
The System.Windows.Controls.ControlTemplate to use for the "new" row in a System.Windows.Controls.DataGrid.
SetTemplate(DataGrid, ControlTemplate)
Sets the value of the TemplateProperty attached property to a specified System.Windows.Controls.DataGrid.
public static void SetTemplate(DataGrid obj, ControlTemplate value)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.Controls.DataGrid | The object to which the attached property is written. |
value | System.Windows.Controls.ControlTemplate | A value indicating the System.Windows.Controls.ControlTemplate to use for the "new" row in a System.Windows.Controls.DataGrid. |
Fields
DefaultTemplateProperty
Identifies the read-only DefaultTemplate
dependency property. This field is read-only.
public static readonly DependencyProperty DefaultTemplateProperty
TemplateProperty
Identifies the Template
attached dependency property. This field is read-only.
public static readonly DependencyProperty TemplateProperty
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()