C# Class ModernWPF.ListViewUI

Contains attached properties for a ListView.
显示文件 Open project: soukoku/ModernWPF Class Usage Examples

Public Properties

Property Type Description
SortCommandProperty System.Windows.DependencyProperty
SortDirectionProperty System.Windows.DependencyProperty

Public Methods

Method Description
ClearSorts ( System.Windows.Controls.ListView listView ) : void

Used to manually clears any sort indicators in the GridView columns if it is set by this class.

GetSortCommand ( DependencyObject obj ) : ICommand

Gets the sort command.

GetSortDirection ( DependencyObject obj ) : ListSortDirection?

Gets the sort direction.

SetSortCommand ( DependencyObject obj, ICommand value ) : void

Sets the sort command.

SetSortDirection ( DependencyObject obj, ListSortDirection value ) : void

Sets the sort direction.

Private Methods

Method Description
HandleHeaderClick ( object sender, RoutedEventArgs e ) : void
OnSortCommandPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

ClearSorts() public static method

Used to manually clears any sort indicators in the GridView columns if it is set by this class.
public static ClearSorts ( System.Windows.Controls.ListView listView ) : void
listView System.Windows.Controls.ListView The list view.
return void

GetSortCommand() public static method

Gets the sort command.
obj
public static GetSortCommand ( DependencyObject obj ) : ICommand
obj System.Windows.DependencyObject The object.
return ICommand

GetSortDirection() public static method

Gets the sort direction.
obj
public static GetSortDirection ( DependencyObject obj ) : ListSortDirection?
obj System.Windows.DependencyObject The object.
return ListSortDirection?

SetSortCommand() public static method

Sets the sort command.
obj
public static SetSortCommand ( DependencyObject obj, ICommand value ) : void
obj System.Windows.DependencyObject The object.
value ICommand The value.
return void

SetSortDirection() public static method

Sets the sort direction.
obj
public static SetSortDirection ( DependencyObject obj, ListSortDirection value ) : void
obj System.Windows.DependencyObject The object.
value ListSortDirection The value.
return void

Property Details

SortCommandProperty public_oe static_oe property

The sort command property on a ListView when clicking on the GridView view columns. The command parameter will be GridViewSortParameter.
public static DependencyProperty,System.Windows SortCommandProperty
return System.Windows.DependencyProperty

SortDirectionProperty public_oe static_oe property

The sort direction property on a GridViewColumnHeader.
public static DependencyProperty,System.Windows SortDirectionProperty
return System.Windows.DependencyProperty