public MenuItem(string title, MainMenuViewModel parent, Type viewModelType) { Title = title; ViewModelType = viewModelType; ShowCommand = new MvxCommand(() => parent.ShowViewModel(ViewModelType)); }
public MenuItem(string title, MainMenuViewModel parent, Type viewModelType) { Title = title; ViewModelType = viewModelType; ShowCommand = new MvxRelayCommand(() => parent.RequestNavigate(ViewModelType)); }
public MenuItem(string title, MainMenuViewModel parent, string viewModelUrl) { Title = title; // Will change to navigate to type once https://github.com/MvvmCross/MvvmCross/pull/2148 is in. ShowCommand = new MvxCommand(() => parent.NavigationService.Navigate(viewModelUrl)); }