private bool SendKeyDownCommand(Keys key) { IDesignerHost service = this.serviceProvider.GetService(typeof(IDesignerHost)) as IDesignerHost; if (service != null) { IRootDesigner designer = ActivityDesigner.GetDesigner(service.RootComponent as Activity); if (designer != null) { WorkflowView view = designer.GetView(ViewTechnology.Default) as WorkflowView; if (view != null) { KeyEventArgs e = new KeyEventArgs(key); view.OnCommandKey(e); return(e.Handled); } } } return(false); }