Microsoft.Windows.Controls.Ribbon.RibbonGallery.FilterCanExecute C# (CSharp) Méthode

FilterCanExecute() private static méthode

private static FilterCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
sender object
args System.Windows.Input.CanExecuteRoutedEventArgs
Résultat void
        private static void FilterCanExecute(object sender, CanExecuteRoutedEventArgs args)
        {
            RibbonGallery rg = sender as RibbonGallery;
            if (rg.CanUserFilter &&
                rg._filterMenuButton != null &&
                rg.FilterPaneContent == null &&
                rg.FilterPaneContentTemplate == null)
            {
                args.CanExecute = true;
            }
        }
RibbonGallery