public PackagesCommandDefinition() { _command = ReactiveCommand.Create(); _command.Subscribe(_ => { var shell = IoC.Get<IShell>(); shell.ModalDialog = new PackageManagerDialogViewModel(); shell.ModalDialog.ShowDialog(); }); }