TreeListViewColumn Class
Represents a column definition for a TreeListView control.
public class TreeListViewColumn : DependencyObject
- Inheritance:
- object object
Constructors
TreeListViewColumn()
Initializes an instance of the class.
public TreeListViewColumn()
Properties
ActualWidth
The actual width of the column.
AutoWidthMode
The TreeListViewColumnAutoWidthMode that specifies which column cells are used to calculate auto-width when Width is Auto.
public TreeListViewColumnAutoWidthMode AutoWidthMode { get; set; }
Property Value
CanReorder
Indicates whether the column can be reordered by the end user.
public bool? CanReorder { get; set; }
Property Value
Remarks
If set to null, the resolved value will use the global CanColumnsReorder setting.
CanResize
Indicates whether the column can be resized by the end user.
public bool? CanResize { get; set; }
Property Value
Remarks
If set to null, the resolved value will use the global CanColumnsResize setting.
CanToggleVisibility
Indicates whether the column can have its visibility toggled by the end user.
public bool? CanToggleVisibility { get; set; }
Property Value
- bool?:
A nullable bool that indicates whether the column can have its visibility toggled by the end user.
Remarks
If set to null, the resolved value will use the global CanColumnsToggleVisibility setting.
CellBorderThickness
The Thickness of the border around cells in this column.
public Thickness CellBorderThickness { get; set; }
Property Value
- Thickness:
The default value is
0.
CellContainerStyle
The Style that defines the visual representation of the column's cells.
CellHorizontalAlignment
The HorizontalAlignment of the cell content in this column.
public HorizontalAlignment CellHorizontalAlignment { get; set; }
Property Value
- HorizontalAlignment:
The default value is
Stretch.
CellPadding
The Thickness of the padding in cells in this column.
CellTemplate
The DataTemplate that defines the visual representation of the column's cells.
CellTemplateSelector
The DataTemplateSelector that selects which template to use for the column's cells.
CellVerticalAlignment
The VerticalAlignment of the cell content in this column.
public VerticalAlignment CellVerticalAlignment { get; set; }
Property Value
- VerticalAlignment:
The default value is
Center.
ClipX
The clip x-location.
DisplayMemberBinding
The data item to bind to for this column.
Header
The column header content.
HeaderCellBorderThickness
The Thickness of the border around the header cell in this column.
public Thickness HeaderCellBorderThickness { get; set; }
Property Value
- Thickness:
The default value is
0, 0, 1, 1.
HeaderCellPadding
The Thickness of the padding in the header cell in this column.
public Thickness HeaderCellPadding { get; set; }
Property Value
- Thickness:
The default value is
7, 2.
HeaderContainerStyle
The Style to use for the column header container.
HeaderHorizontalAlignment
The HorizontalAlignment of the column header content.
public HorizontalAlignment HeaderHorizontalAlignment { get; set; }
Property Value
HeaderTemplate
The DataTemplate that defines the visual representation of the column header.
HeaderTemplateSelector
The DataTemplateSelector that selects which template to use for the column header.
public DataTemplateSelector? HeaderTemplateSelector { get; set; }
Property Value
Index
The index of the column within its owner control.
IsFrozen
Indicates whether the column is frozen.
public bool IsFrozen { get; }
Property Value
- bool:
trueif the column is frozen; otherwise,false. The default value isfalse.
IsResizeGripperEnabled
Indicates whether the column's resize gripper is enabled.
public bool IsResizeGripperEnabled { get; }
Property Value
- bool:
trueif the column's resize gripper is enabled; otherwise,false. The default value istrue.
IsVisible
Indicates whether the column is visible.
public bool IsVisible { get; set; }
Property Value
- bool:
trueif the column is visible; otherwise,false. The default value istrue.
MaxWidth
The maximum column width.
public double MaxWidth { get; set; }
Property Value
- double:
The default value is
NaN, meaning no maximum.
MinWidth
The minimum column width.
SizeToFitCommand
The ICommand that adjusts the width of the column to fit all of its contents.
SortDirection
The column sort direction.
public ColumnSortDirection? SortDirection { get; set; }
Property Value
- ColumnSortDirection?:
The default value is a null reference, meaning no sort.
Tag
Custom data for the column.
Title
The string title of the column, used in context menus and other secondary UI, but not visible within the column itself.
ToggleVisibilityCommand
The ICommand that can be used to toggle the column's visibility.
Width
The column width.
Methods
SizeToFit()
Adjusts the width of the column to fit all of its contents.
public void SizeToFit()
Events
PropertyChanged
Occurs when a property value changes.
Fields
AutoWidthModeProperty
Defines the AutoWidthMode property.
public static readonly DependencyProperty AutoWidthModeProperty
CanReorderProperty
Defines the CanReorder property.
public static readonly DependencyProperty CanReorderProperty
CanResizeProperty
Defines the CanResize property.
public static readonly DependencyProperty CanResizeProperty
CanToggleVisibilityProperty
Defines the CanToggleVisibility property.
public static readonly DependencyProperty CanToggleVisibilityProperty
CellBorderThicknessProperty
Defines the CellBorderThickness property.
public static readonly DependencyProperty CellBorderThicknessProperty
CellContainerStyleProperty
Defines the CellContainerStyle property.
public static readonly DependencyProperty CellContainerStyleProperty
CellHorizontalAlignmentProperty
Defines the CellHorizontalAlignment property.
public static readonly DependencyProperty CellHorizontalAlignmentProperty
CellPaddingProperty
Defines the CellPadding property.
public static readonly DependencyProperty CellPaddingProperty
CellTemplateProperty
Defines the CellTemplate property.
public static readonly DependencyProperty CellTemplateProperty
CellTemplateSelectorProperty
Defines the CellTemplateSelector property.
public static readonly DependencyProperty CellTemplateSelectorProperty
CellVerticalAlignmentProperty
Defines the CellVerticalAlignment property.
public static readonly DependencyProperty CellVerticalAlignmentProperty
HeaderCellBorderThicknessProperty
Defines the HeaderCellBorderThickness property.
public static readonly DependencyProperty HeaderCellBorderThicknessProperty
HeaderCellPaddingProperty
Defines the HeaderCellPadding property.
public static readonly DependencyProperty HeaderCellPaddingProperty
HeaderContainerStyleProperty
Defines the HeaderContainerStyle property.
public static readonly DependencyProperty HeaderContainerStyleProperty
HeaderHorizontalAlignmentProperty
Defines the HeaderHorizontalAlignment property.
public static readonly DependencyProperty HeaderHorizontalAlignmentProperty
HeaderProperty
Defines the Header property.
public static readonly DependencyProperty HeaderProperty
HeaderTemplateProperty
Defines the HeaderTemplate property.
public static readonly DependencyProperty HeaderTemplateProperty
HeaderTemplateSelectorProperty
Defines the HeaderTemplateSelector property.
public static readonly DependencyProperty HeaderTemplateSelectorProperty
IndexProperty
Defines the Index property.
public static readonly DependencyProperty IndexProperty
IsFrozenProperty
Defines the IsFrozen property.
public static readonly DependencyProperty IsFrozenProperty
IsResizeGripperEnabledProperty
Defines the IsResizeGripperEnabled property.
public static readonly DependencyProperty IsResizeGripperEnabledProperty
IsVisibleProperty
Defines the IsVisible property.
public static readonly DependencyProperty IsVisibleProperty
MaxWidthProperty
Defines the MaxWidth property.
public static readonly DependencyProperty MaxWidthProperty
MinWidthProperty
Defines the MinWidth property.
public static readonly DependencyProperty MinWidthProperty
SortDirectionProperty
Defines the SortDirection property.
public static readonly DependencyProperty SortDirectionProperty
TagProperty
Defines the Tag property.
public static readonly DependencyProperty TagProperty
TitleProperty
Defines the Title property.
public static readonly DependencyProperty TitleProperty
WidthProperty
Defines the Width property.
public static readonly DependencyProperty WidthProperty