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

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