How to show a MvxDialogFragment from ViewModel?

Viewed 1698

In this example https://github.com/MvvmCross/MvvmCross-Tutorials/tree/master/DialogExamples/DialogExamples.Droid

the MvxDialogFragment is launched from the Activity.

How can I do to show My MvxDialogFragment directly from ViemModel?

I have two ViewModels: ListViewModel And DetailViewModel

In ListViewModel:

public DetailViewModel SelectedItem
    {
        get { return _SelectedItem; }
        set
        {
            _SelectedItem = value;
            ShowViewModel<DetailViewModel>(new { id = value.Model.Id }); //Show my activity in Dialog mode
        }
    }

Thank you in advance.

1 Answers
Related