Class ListViewSortBehavior
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
InitialColumnIndexProperty
Initial column index
public static readonly DependencyProperty InitialColumnIndexProperty
Field Value
ResetOnCollectionChangeProperty
Reset the sort visual when the underlying collection changes.
public static readonly DependencyProperty ResetOnCollectionChangeProperty
Field Value
SortDirectionProperty
Sort direction
public static readonly DependencyProperty SortDirectionProperty
Field Value
Properties
ArrowFill
The color of the arrow
public Brush ArrowFill { get; set; }
Property Value
InitialColumnIndex
Initial sorting column
public int InitialColumnIndex { get; set; }
Property Value
ResetOnCollectionChange
True to reset the sort when the underlying collection changes
public bool ResetOnCollectionChange { get; set; }
Property Value
SortDirection
Sort direction
public ListSortDirection SortDirection { get; set; }
Property Value
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