In This Article

TreeListViewColumnHeader Class

Represents an item for a TreeListBox control.

[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "PointerOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Pressed", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Off", GroupName = "DropIndicatorAreaStates")]
[TemplateVisualState(Name = "Before", GroupName = "DropIndicatorAreaStates")]
[TemplateVisualState(Name = "After", GroupName = "DropIndicatorAreaStates")]
[TemplateVisualState(Name = "Unsorted", GroupName = "SortStates")]
[TemplateVisualState(Name = "SortAscending", GroupName = "SortStates")]
[TemplateVisualState(Name = "SortDescending", GroupName = "SortStates")]
[TemplatePart(Name = "PART_Chrome", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "PART_ResizeGripper", Type = typeof(FrameworkElement))]
public class TreeListViewColumnHeader : ContentControl, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
Inheritance:
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ContentControl Object

Constructors

TreeListViewColumnHeader()

Initializes an instance of the TreeListViewColumnHeader class.

public TreeListViewColumnHeader()

Properties

DropIndicatorArea

Gets a TreeItemDropArea that specifies the drop indicator to display.

public TreeItemDropArea DropIndicatorArea { get; }

Property Value

TreeItemDropArea:

The TreeItemDropArea that specifies the drop indicator to display.

IsDragging

Gets whether the control is being dragged.

public bool IsDragging { get; }

Property Value

Boolean:

true if the control is being dragged; otherwise, false. The default value is false.

IsPressed

Gets whether the control is pressed.

public bool IsPressed { get; }

Property Value

Boolean:

true if the control is pressed; otherwise, false. The default value is false.

IsResizeGripperEnabled

Gets whether the resizing header gripper is enabled.

public bool IsResizeGripperEnabled { get; }

Property Value

Boolean:

true if the resizing header gripper is enabled; otherwise, false. The default value is false.

Role

Gets or sets a TreeListViewColumnHeaderRole that indicates the role of the column header.

public TreeListViewColumnHeaderRole Role { get; set; }

Property Value

TreeListViewColumnHeaderRole:

A TreeListViewColumnHeaderRole that indicates the role of the column header. The default value is Normal.

SortDirection

Gets or sets the column sort direction.

public ColumnSortDirection? SortDirection { get; set; }

Property Value

Nullable<ColumnSortDirection>:

The column sort direction. The default value is a null reference, meaning no sort.

Methods

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate.

public override void OnApplyTemplate()

OnContextMenuOpening(ContextMenuEventArgs)

Occurs when a context menu is requested.

protected override void OnContextMenuOpening(ContextMenuEventArgs e)
Parameter Type Description
e ContextMenuEventArgs

The ContextMenuEventArgs that contains the event data.

OnGotFocus(RoutedEventArgs)

Occurs when the control gains focus.

protected override void OnGotFocus(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

The RoutedEventArgs that contains the event data.

OnLostFocus(RoutedEventArgs)

Occurs when the control loses focus.

protected override void OnLostFocus(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

The RoutedEventArgs that contains the event data.

ToString()

Returns a String that represents the current Object.

public override string ToString()

Returns

String:

A String that represents the current Object.

Fields

DropIndicatorAreaProperty

Identifies the DropIndicatorArea dependency property. This field is read-only.

public static readonly DependencyProperty DropIndicatorAreaProperty

IsDraggingProperty

Identifies the IsDragging dependency property. This field is read-only.

public static readonly DependencyProperty IsDraggingProperty

IsPressedProperty

Identifies the IsPressed dependency property. This field is read-only.

public static readonly DependencyProperty IsPressedProperty

IsResizeGripperEnabledProperty

Identifies the IsResizeGripperEnabled dependency property. This field is read-only.

public static readonly DependencyProperty IsResizeGripperEnabledProperty

RoleProperty

Identifies the Role dependency property. This field is read-only.

public static readonly DependencyProperty RoleProperty

SortDirectionProperty

Identifies the SortDirection dependency property. This field is read-only.

public static readonly DependencyProperty SortDirectionProperty

Inherited Members

Extension Methods