Example #1
0
        public DetailViewModel(CharacterItemViewModel character,
                               IOpenWebService openWebService = null)
        {
            Character       = character;
            _openWebService = openWebService ?? Locator.Current.GetService <IOpenWebService>();

            OpenWeb = ReactiveCommand.Create(() => _openWebService.OpenUrl(Character.Thumbnail));
        }
 void NavigateToDetailPage(CharacterItemViewModel item)
 {
     HostScreen.Router.Navigate.Execute(new DetailViewModel(item)).Subscribe();
 }