Class DataGridColumnHeader
Represents an individual DataGrid column header.
Inheritance
System.Object
DataGridColumnHeader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.Controls.Data.dll
Syntax
public class DataGridColumnHeader : ContentControl
Constructors
| Improve this Doc View SourceDataGridColumnHeader()
Initializes a new instance of the DataGridColumnHeader class.
Declaration
public DataGridColumnHeader()
Fields
| Improve this Doc View SourceSeparatorBrushProperty
Identifies the SeparatorBrush dependency property.
Declaration
public static readonly DependencyProperty SeparatorBrushProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SeparatorVisibilityProperty
Identifies the SeparatorVisibility dependency property.
Declaration
public static readonly DependencyProperty SeparatorVisibilityProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceSeparatorBrush
Gets or sets the Brush used to paint the column header separator lines.
Declaration
public Brush SeparatorBrush { get; set; }
Property Value
Type | Description |
---|---|
Brush |
SeparatorVisibility
Gets or sets a value indicating whether the column header separator lines are visible.
Declaration
public Visibility SeparatorVisibility { get; set; }
Property Value
Type | Description |
---|---|
Visibility |
Methods
| Improve this Doc View SourceOnApplyTemplate()
Builds the visual tree for the column header when a new template is applied.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnContentChanged(Object, Object)
Called when the value of the Content property changes.
Declaration
protected override void OnContentChanged(object oldContent, object newContent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | oldContent | The old value of the Content property. |
System.Object | newContent | The new value of the Content property. |
Overrides
Exceptions
Type | Condition |
---|---|
System.NotSupportedException |
|
OnCreateAutomationPeer()
Creates AutomationPeer (OnCreateAutomationPeer())
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
AutomationPeer |