C# Class JustAProgrammer.TeamPilgrim.VisualStudio.Common.AttachedProperties.GridViewSort

Show file Open project: StanleyGoldman/TeamPilgrim

Public Properties

Property Type Description
AutoSortProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
PropertyNameProperty System.Windows.DependencyProperty
ShowSortGlyphProperty System.Windows.DependencyProperty
SortGlyphAscendingProperty System.Windows.DependencyProperty
SortGlyphDescendingProperty System.Windows.DependencyProperty

Public Methods

Method Description
ApplySort ( ICollectionView view, string propertyName, System.Windows.Controls.ListView listView, System.Windows.Controls.GridViewColumnHeader sortedColumnHeader, ListSortDirection overrideListSortDirection = null ) : void
GetAutoSort ( DependencyObject obj ) : bool
GetCommand ( DependencyObject obj ) : ICommand
GetPropertyName ( DependencyObject obj ) : string
GetShowSortGlyph ( DependencyObject obj ) : bool
GetSortGlyphAscending ( DependencyObject obj ) : ImageSource
GetSortGlyphDescending ( DependencyObject obj ) : ImageSource
SetAutoSort ( DependencyObject obj, bool value ) : void
SetCommand ( DependencyObject obj, ICommand value ) : void
SetPropertyName ( DependencyObject obj, string value ) : void
SetShowSortGlyph ( DependencyObject obj, bool value ) : void
SetSortGlyphAscending ( DependencyObject obj, ImageSource value ) : void
SetSortGlyphDescending ( DependencyObject obj, ImageSource value ) : void

Private Methods

Method Description
AddSortGlyph ( System.Windows.Controls.GridViewColumnHeader columnHeader, ListSortDirection direction, ImageSource sortGlyph ) : void
ColumnHeader_Click ( object sender, RoutedEventArgs e ) : void
GetSortedColumnHeader ( DependencyObject obj ) : System.Windows.Controls.GridViewColumnHeader
RemoveSortGlyph ( System.Windows.Controls.GridViewColumnHeader columnHeader ) : void
SetSortedColumnHeader ( DependencyObject obj, System.Windows.Controls.GridViewColumnHeader value ) : void

Method Details

ApplySort() public static method

public static ApplySort ( ICollectionView view, string propertyName, System.Windows.Controls.ListView listView, System.Windows.Controls.GridViewColumnHeader sortedColumnHeader, ListSortDirection overrideListSortDirection = null ) : void
view ICollectionView
propertyName string
listView System.Windows.Controls.ListView
sortedColumnHeader System.Windows.Controls.GridViewColumnHeader
overrideListSortDirection ListSortDirection
return void

GetAutoSort() public static method

public static GetAutoSort ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

GetCommand() public static method

public static GetCommand ( DependencyObject obj ) : ICommand
obj System.Windows.DependencyObject
return ICommand

GetPropertyName() public static method

public static GetPropertyName ( DependencyObject obj ) : string
obj System.Windows.DependencyObject
return string

GetShowSortGlyph() public static method

public static GetShowSortGlyph ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

GetSortGlyphAscending() public static method

public static GetSortGlyphAscending ( DependencyObject obj ) : ImageSource
obj System.Windows.DependencyObject
return ImageSource

GetSortGlyphDescending() public static method

public static GetSortGlyphDescending ( DependencyObject obj ) : ImageSource
obj System.Windows.DependencyObject
return ImageSource

SetAutoSort() public static method

public static SetAutoSort ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

SetCommand() public static method

public static SetCommand ( DependencyObject obj, ICommand value ) : void
obj System.Windows.DependencyObject
value ICommand
return void

SetPropertyName() public static method

public static SetPropertyName ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject
value string
return void

SetShowSortGlyph() public static method

public static SetShowSortGlyph ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

SetSortGlyphAscending() public static method

public static SetSortGlyphAscending ( DependencyObject obj, ImageSource value ) : void
obj System.Windows.DependencyObject
value ImageSource
return void

SetSortGlyphDescending() public static method

public static SetSortGlyphDescending ( DependencyObject obj, ImageSource value ) : void
obj System.Windows.DependencyObject
value ImageSource
return void

Property Details

AutoSortProperty public static property

public static DependencyProperty,System.Windows AutoSortProperty
return System.Windows.DependencyProperty

CommandProperty public static property

public static DependencyProperty,System.Windows CommandProperty
return System.Windows.DependencyProperty

PropertyNameProperty public static property

public static DependencyProperty,System.Windows PropertyNameProperty
return System.Windows.DependencyProperty

ShowSortGlyphProperty public static property

public static DependencyProperty,System.Windows ShowSortGlyphProperty
return System.Windows.DependencyProperty

SortGlyphAscendingProperty public static property

public static DependencyProperty,System.Windows SortGlyphAscendingProperty
return System.Windows.DependencyProperty

SortGlyphDescendingProperty public static property

public static DependencyProperty,System.Windows SortGlyphDescendingProperty
return System.Windows.DependencyProperty