Catrobat.IDE.WindowsPhone.Controls.LargeImageButton.CommandChanged C# (CSharp) Method

CommandChanged() private static method

private static CommandChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d Windows.UI.Xaml.DependencyObject
e Windows.UI.Xaml.DependencyPropertyChangedEventArgs
return void
        private static void CommandChanged(DependencyObject d,
            DependencyPropertyChangedEventArgs e)
        {
            var instance = (d as LargeImageButton);
            if (instance == null) return;

            instance.ButtonMain.Command = ((ICommand)e.NewValue);
        }