private static void OnItemHoverBackgroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { GBListView listview = d as GBListView; if (e.NewValue != e.OldValue) { listview.ItemHoverBackground = e.NewValue as Brush; } }
private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { if (e.NewValue != e.OldValue) { GBListView view = (GBListView)d; if (view._gridview != null) { view._gridview.ItemsSource = e.NewValue; view._gridview.UpdateWidth(); } view.AdjustScrollBars(); } }
private static void OnColumnCollectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { GBListView listview = d as GBListView; listview.UpdateColumns(e.OldValue as GridViewColumnCollection, e.NewValue as GridViewColumnCollection); }