C# Class ModernWPF.ListViewUI

Contains attached properties for a ListView.
Afficher le fichier Open project: soukoku/ModernWPF Class Usage Examples

Méthodes publiques

Свойство Type Description
SortCommandProperty System.Windows.DependencyProperty
SortDirectionProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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

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

Method Details

ClearSorts() public static méthode

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.
Résultat void

GetSortCommand() public static méthode

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

GetSortDirection() public static méthode

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

SetSortCommand() public static méthode

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

SetSortDirection() public static méthode

Sets the sort direction.
obj
public static SetSortDirection ( DependencyObject obj, ListSortDirection value ) : void
obj System.Windows.DependencyObject The object.
value ListSortDirection The value.
Résultat 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
Résultat System.Windows.DependencyProperty

SortDirectionProperty public_oe static_oe property

The sort direction property on a GridViewColumnHeader.
public static DependencyProperty,System.Windows SortDirectionProperty
Résultat System.Windows.DependencyProperty