Example #1
0
        }         // 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
Example #2
0
 public TemplateCode(PpsShellWpf shell)
     : base(shell)
 {
 }             // ctor
Example #3
0
            public DefaultResourceProvider(PpsShellWpf shell)
            {
                this.shell = shell;

                Add(DefaultEnvironmentKey, shell); // register environment
            }                                      // ctor
Example #4
0
 public DefaultInstanceDataTemplateSelector(PpsShellWpf shell)
 {
     this.shell = shell;
 }             // ctor