Class TreeViewColumn
Class represents the TreeView Column
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class TreeViewColumn : DependencyObject, INotifyPropertyChanged
Constructors
TreeViewColumn()
Initializes a new instance of the TreeViewColumn class.
Declaration
public TreeViewColumn()
Fields
CellTemplateProperty
Identifies CellTemplate dependency property of the TreeViewColumn.
Declaration
public static readonly DependencyProperty CellTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CellTemplateSelectorProperty
Identifies CellTemplateSelector dependency property of the TreeViewColumn.
Declaration
public static readonly DependencyProperty CellTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ColumnHeaderTemplateProperty
Identifies CellTemplate dependency property of the TreeViewColumn.
Declaration
public static readonly DependencyProperty ColumnHeaderTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ColumnHeaderTemplateSelectorProperty
Identifies CellTemplateSelector dependency property of the TreeViewColumn.
Declaration
public static readonly DependencyProperty ColumnHeaderTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ContentAlignmentProperty
Declaration
public static readonly DependencyProperty ContentAlignmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HeaderContentAlignmentProperty
Declaration
public static readonly DependencyProperty HeaderContentAlignmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HeaderProperty
Identifies Header dependency property of the TreeViewColumn.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsColumnDragDataEnabledProperty
Identifies IsColumnDragDataEnabled dependency property of the TreeViewColumn.
Declaration
public static readonly DependencyProperty IsColumnDragDataEnabledProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsSortingEnabledOnHeaderClickProperty
Identifies IsSortingEnabledOnHeaderClick dependency property of the TreeViewColumn.
Declaration
public static readonly DependencyProperty IsSortingEnabledOnHeaderClickProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MinWidthProperty
Identifies MinWidth dependency property of the TreeViewColumn.
Declaration
public static readonly DependencyProperty MinWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SortByProperty
Declaration
public static readonly DependencyProperty SortByProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StateProperty
Declaration
public static readonly DependencyProperty StateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WidthProperty
Identifies Width dependency property of the TreeViewColumn.
Declaration
public static readonly DependencyProperty WidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
ActualWidth
Gets the actual width.
Declaration
public double ActualWidth { get; }
Property Value
Type | Description |
---|---|
System.Double | The actual width. |
CellTemplate
Gets or sets the cell template.
Declaration
public DataTemplate CellTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate | The cell template. |
CellTemplateSelector
Gets or sets the cell template selector.
Declaration
public DataTemplateSelector CellTemplateSelector { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.DataTemplateSelector | The cell template selector. |
ColumnHeaderTemplate
Gets or sets the column header template.
Declaration
public DataTemplate ColumnHeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate | The column header template. |
ColumnHeaderTemplateSelector
Gets or sets the column header template selector.
Declaration
public DataTemplateSelector ColumnHeaderTemplateSelector { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.DataTemplateSelector | The column header template selector. |
ContentAlignment
Tree view content alignment
Declaration
public HorizontalAlignment ContentAlignment { get; set; }
Property Value
Type |
---|
System.Windows.HorizontalAlignment |
DisplayMemberBinding
Gets or sets the display member binding.
Declaration
public BindingBase DisplayMemberBinding { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Data.BindingBase | The display member binding. |
Header
Gets or sets the header.
Declaration
public object Header { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The header. |
HeaderContentAlignment
treeview column header content alignment
Declaration
public HorizontalAlignment HeaderContentAlignment { get; set; }
Property Value
Type |
---|
System.Windows.HorizontalAlignment |
IsColumnDragDataEnabled
Gets or sets a value indicating whether this instance is column drag data enabled.
Declaration
public bool IsColumnDragDataEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsSortingEnabledOnHeaderClick
Gets or sets a value indicating whether this instance is sorting enabled on header click.
Declaration
public bool IsSortingEnabledOnHeaderClick { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
MinWidth
Gets or sets the width of the min.
Declaration
public double MinWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the min. |
SortBy
Field name have to give for sortby
Declaration
public string SortBy { get; set; }
Property Value
Type |
---|
System.String |
State
Gets or sets the Column measure state
Declaration
public ColumnMeasureState State { get; set; }
Property Value
Type |
---|
ColumnMeasureState |
Width
Gets or sets the width.
Declaration
public GridLength Width { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.GridLength | The width. |
Methods
OnContentAlignmentChanged(DependencyPropertyChangedEventArgs)
contentalignment method will called when contentalignment value changes
Declaration
protected void OnContentAlignmentChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args |
OnHeaderContentAlignmentChanged(DependencyPropertyChangedEventArgs)
method will called when headercontentalignment value changes
Declaration
protected void OnHeaderContentAlignmentChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args |
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.PropertyChangedEventArgs | e | The System.ComponentModel.PropertyChangedEventArgs instance containing the event data. |
OnSortByChanged(DependencyPropertyChangedEventArgs)
sortybychanged method will called when sortby value changes
Declaration
protected void OnSortByChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args |
OnStateChanged(DependencyPropertyChangedEventArgs)
method will called when state value changes
Declaration
protected void OnStateChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args |
Events
ContentAlignmentChanged
Invokes when property for ContentAlignment changed.
Declaration
public event PropertyChangedCallback ContentAlignmentChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
HeaderContentAlignmentChanged
Invokes when property for HeaderContentAlignmentChanged.
Declaration
public event PropertyChangedCallback HeaderContentAlignmentChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |
SortByChanged
Invokes when property for SortByChanged.
Declaration
public event PropertyChangedCallback SortByChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
StateChanged
Invokes when property for StateChanged.
Declaration
public event PropertyChangedCallback StateChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |