} // func CanExecuteCommandHandlerImpl private static void ExecutedCommandHandlerImpl(object sender, PpsShellWpf environment, ExecutedRoutedEventArgs e) { if (!e.Handled && e.Command is PpsCommandBase c) { c.ExecuteCommand(new PpsCommandContext(environment, e.OriginalSource ?? e.Source, e.Source, e.Parameter)); e.Handled = true; } } // func CanExecuteCommandHandlerImpl
public TemplateCode(PpsShellWpf shell) : base(shell) { } // ctor
public DefaultResourceProvider(PpsShellWpf shell) { this.shell = shell; Add(DefaultEnvironmentKey, shell); // register environment } // ctor
public DefaultInstanceDataTemplateSelector(PpsShellWpf shell) { this.shell = shell; } // ctor