/// <summary> /// Initializes a new instance of the <see cref="ViewCurrentConfigurationCommandBinding<TController, TModel>"/> class. /// </summary> /// <param name="viewModel">The view model.</param> public ViewCurrentConfigurationCommandBinding(ShellViewModel viewModel) { this.Command = ShellCommands.ViewCurrentConfiguration; this.CanExecute += delegate(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = ViewCurrentConfigurationCommand.CanExecute(viewModel, e.Parameter); }; this.Executed += delegate(object sender, ExecutedRoutedEventArgs e) { ViewCurrentConfigurationCommand.Execute(viewModel); }; }
internal static void Execute(ShellViewModel viewModel) { ViewCurrentConfigurationCommand.Open(viewModel); }
internal static bool CanExecute(ShellViewModel viewModel, object parameter) { return(ViewCurrentConfigurationCommand.CanOpen(viewModel)); }