OnSelectedPropertyChanged() private static méthode

private static OnSelectedPropertyChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs args ) : void
sender System.Windows.DependencyObject
args System.Windows.DependencyPropertyChangedEventArgs
Résultat void
Exemple #1
0
        private static void OnSelectedPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            PropertyGrid propertyGrid = sender as PropertyGrid;

            if (propertyGrid != null)
            {
                propertyGrid.OnSelectedPropertyChanged(( object )args.OldValue, ( object )args.NewValue);
            }
        }
        private static void OnSelectedPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            PropertyGrid propertyGrid = o as PropertyGrid;

            if (propertyGrid != null)
            {
                propertyGrid.OnSelectedPropertyChanged(( PropertyItem )e.OldValue, ( PropertyItem )e.NewValue);
            }
        }