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
Inheritance:
object Visual UIElement FrameworkElement Control ContentControl object

Constructors

TreeListViewColumnHeader()

Initializes an instance of the class.

public TreeListViewColumnHeader()

Properties

DropIndicatorArea

A TreeItemDropArea that specifies the drop indicator to display.

public TreeItemDropArea DropIndicatorArea { get; }

Property Value

TreeItemDropArea

IsDragging

Indicates whether the control is being dragged.

public bool IsDragging { get; }

Property Value

bool:

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

IsPressed

Indicates whether the control is pressed.

public bool IsPressed { get; }

Property Value

bool:

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

IsResizeGripperEnabled

Indicates whether the resizing header gripper is enabled.

public bool IsResizeGripperEnabled { get; }

Property Value

bool:

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

Role

A TreeListViewColumnHeaderRole that indicates the role of the column header.

public TreeListViewColumnHeaderRole Role { get; set; }

Property Value

TreeListViewColumnHeaderRole:

The default value is Normal.

SortDirection

The column sort direction.

public ColumnSortDirection? SortDirection { get; set; }

Property Value

ColumnSortDirection?:

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

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnContextMenuOpening(ContextMenuEventArgs)

Invoked whenever an unhandled ContextMenuOpening routed event reaches this class in its route. Implement this method to add class handling for this event.

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

The RoutedEventArgs that contains the event data.

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

OnGotFocus(RoutedEventArgs)

Invoked whenever an unhandled GotFocus event reaches this element in its route.

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

The RoutedEventArgs that contains the event data.

OnLostFocus(RoutedEventArgs)

Raises the LostFocus routed event by using the event data that is provided.

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

A RoutedEventArgs that contains event data. This event data must contain the identifier for the LostFocus event.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Fields

DropIndicatorAreaProperty

Defines the DropIndicatorArea property.

public static readonly DependencyProperty DropIndicatorAreaProperty

IsDraggingProperty

Defines the IsDragging property.

public static readonly DependencyProperty IsDraggingProperty

IsPressedProperty

Defines the IsPressed property.

public static readonly DependencyProperty IsPressedProperty

IsResizeGripperEnabledProperty

Defines the IsResizeGripperEnabled property.

public static readonly DependencyProperty IsResizeGripperEnabledProperty

RoleProperty

Defines the Role property.

public static readonly DependencyProperty RoleProperty

SortDirectionProperty

Defines the SortDirection property.

public static readonly DependencyProperty SortDirectionProperty

Extension Methods