Exemplo n.º 1
0
 private static void OnIsEnabledPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
 {
     RadGridView grid = dependencyObject as RadGridView;
     if (grid != null)
     {
         if ((bool)e.NewValue)
         {
             // Create new GridViewHeaderMenu and attach RowLoaded event.
             GridViewHeaderMenu menu = new GridViewHeaderMenu(grid);
             menu.Attach();
         }
     }
 }
Exemplo n.º 2
0
        private static void OnIsEnabledPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            RadGridView grid = dependencyObject as RadGridView;

            if (grid != null)
            {
                if ((bool)e.NewValue)
                {
                    // Create new GridViewHeaderMenu and attach RowLoaded event.
                    GridViewHeaderMenu menu = new GridViewHeaderMenu(grid);
                    menu.Attach();
                }
            }
        }