Table of Contents

Class ListViewSortBehavior

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

Behavior to provide automatic sorting of a ListView.

public class ListViewSortBehavior : Behavior<ListView>, IAnimatable, IAttachedObject
Inheritance
ListViewSortBehavior
Implements
Inherited Members
Extension Methods

Fields

ArrowFillProperty

The color of the arrow

public static readonly DependencyProperty ArrowFillProperty

Field Value

DependencyProperty

InitialColumnIndexProperty

Initial column index

public static readonly DependencyProperty InitialColumnIndexProperty

Field Value

DependencyProperty

ResetOnCollectionChangeProperty

Reset the sort visual when the underlying collection changes.

public static readonly DependencyProperty ResetOnCollectionChangeProperty

Field Value

DependencyProperty

SortDirectionProperty

Sort direction

public static readonly DependencyProperty SortDirectionProperty

Field Value

DependencyProperty

Properties

ArrowFill

The color of the arrow

public Brush ArrowFill { get; set; }

Property Value

Brush

InitialColumnIndex

Initial sorting column

public int InitialColumnIndex { get; set; }

Property Value

int

ResetOnCollectionChange

True to reset the sort when the underlying collection changes

public bool ResetOnCollectionChange { get; set; }

Property Value

bool

SortDirection

Sort direction

public ListSortDirection SortDirection { get; set; }

Property Value

ListSortDirection

Methods

OnAttached()

Called after the behavior is attached to an AssociatedObject.

protected override void OnAttached()

Remarks

Override this to hook up functionality to the AssociatedObject.

OnDetaching()

Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.

protected override void OnDetaching()

Remarks

Override this to unhook functionality from the AssociatedObject.

Events

SortHeaderClicked

Event used to manage sorting by code behind

public event EventHandler<SortHeaderEventArgs> SortHeaderClicked

Event Type

EventHandler<SortHeaderEventArgs>