How do you bind a dialog widget with a class? The class in question is defined in the Core project.
I could not find any example of this so far. I am comfortable binding an axml to a VM.
EDIT
Seems this tutorial https://github.com/MvvmCross/MvvmCross-Tutorials/tree/master/Fragments should get me started.
However I am not sure how to show a dialog when a listitem is clicked. Above sample maps a button click event to a method in the view, and the latter shows the dialog.
My listitem does not have a view associated to it. It has a viewmodel though. How do I go about showing a dialog when the listitem is clicked???
Also, what is the rational for the snippet in https://github.com/MvvmCross/MvvmCross-Tutorials/blob/master/Fragments/FragmentSample.UI.Droid/Views/HomeView.cs
var existingDialog = (NameDialogFragment)SupportFragmentManager.FindFragmentByTag(NameDialogTagName);
if (existingDialog != null)
existingDialog.ViewModel = HomeViewModel.Names;