public void Execute(object parameter) { // throw new NotImplementedException(); var post = (Post)parameter; // cf Command="{Binding PostCommand}" CommandParameter="{Binding Post}" in NewTravelPage.xaml - sending thru this code viewModel.PublishPost(post); }
public void Execute(object parameter) { var post = parameter as Post; if (post != null) { travelVM.PublishPost(post); } }
public void Execute(object parameter) { var post = (Post)parameter; viewModel.PublishPost(post); }
public void Execute(object parameter) { NewTravelViewModel.PublishPost(); }
public void Execute(object parameter) { var inf = (info)parameter; viewModel.PublishPost(inf); }