I need to call a method of the View in the ViewNodel because in the View I can access different things that in the ViewModel not and I need to call that method. Is this possible to do?
Method in View:
private void MyMethod(object sender, EventArgs e)
{
Book book = null;
if (sender is StackLayout)
{
book = ((StackLayout)sender).BindingContext as Book;
if (null == viewModel.BookSelected || !book.BookId.Equals(viewModel.BookSelected.BookId))
{
//Do something
}
}
}