WPF > Controls > ItemsControl > DataGrid > Clear Sort
_collectionView = (CollectionView)CollectionViewSource.GetDefaultView(dataGrid.Items);
_collectionView.SortDescriptions.Clear();
Search This Blog
Wednesday, November 16, 2016
Thursday, November 3, 2016
Convert Hex to SolidColorBrush
WPF > System.Windows.Media > BrushConverter
BrushConverter is used to convert a Brush object to or from another object type.
Example:
BrushConverter is used to convert a Brush object to or from another object type.
Example:
row.Background = (SolidColorBrush)(new BrushConverter().ConvertFrom("#FFA7CDF0"));
Labels:
BrushConverter
Subscribe to:
Posts (Atom)