public NotifyPageViewModel(NotifyViewModel vm) { Text = vm.Text; Action = new Command(() => { Window.Current.Close(); vm.Action(); }); }