public MainViewModel() { navigationService = DependencyService.Get <INavigationPushService>(); navigationRemoveService = DependencyService.Get <INavigationRemoveService>(); NavigateAnimalViewPage = new Command(async() => await this.OnNavigateAnimalViewPage()); }
public AnimalViewModel() { navigationService = DependencyService.Get <INavigationPushService>(); navigationRemoveService = DependencyService.Get <INavigationRemoveService>(); AnimalM = new AnimalModel(); AnimalM.Source = "https://cdn.vox-cdn.com/thumbor/bcz_df2g76PuoMeaSt6JOjlE-Fo=/0x0:3000x2225/920x613/filters:focal(1082x339:1562x819):format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/66609943/GettyImages_137497593.0.jpg"; NavigateCardViewPage = new Command(async() => await this.NavigateCardViewAsync()); }
public CardViewModel() { navigationPushService = DependencyService.Get <INavigationPushService>(); navigationRemoveService = DependencyService.Get <INavigationRemoveService>(); UserM = new UserModel() { FullName = "Kishor Naik" }; NavigateMainPage = new Command(async() => await this.NavigateMainPageAsync()); }