Exemplo n.º 1
0
        private static void OnCommandPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ButtonBase source = d as ButtonBase;

            Debug.Assert(source != null,
                         "The source is not an instance of ButtonBase!");

            source.CommandPropertyChanged(e);
        }