private static void OnIsEnabledPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
 {
     var grid = dependencyObject as RadGridView;
     if (grid != null)
     {
         if ((bool)e.NewValue)
         {
             var behavior = new CustomGroupingBehavior(grid);
             behavior.Attach();
         }
     }
 }
Esempio n. 2
0
        private static void OnIsEnabledPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            var grid = dependencyObject as RadGridView;

            if (grid != null)
            {
                if ((bool)e.NewValue)
                {
                    var behavior = new CustomGroupingBehavior(grid);
                    behavior.Attach();
                }
            }
        }