Esempio n. 1
0
        private static void OnItemHoverBackgroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GBListView listview = d as GBListView;

            if (e.NewValue != e.OldValue)
            {
                listview.ItemHoverBackground = e.NewValue as Brush;
            }
        }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 3
0
        private static void OnColumnCollectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GBListView listview = d as GBListView;

            listview.UpdateColumns(e.OldValue as GridViewColumnCollection, e.NewValue as GridViewColumnCollection);
        }