Пример #1
0
 public override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     viewModel = Locator.GetNewInstance <DetailViewModel>();
     viewModel.PropertyChanged += ViewModel_PropertyChanged;
     viewModel.Initialize(Locator.Get <INavigationService>().GetCurrentItem());
     Task.Run(async() =>
     {
         await viewModel.GetSimilar().ConfigureAwait(false);
         await viewModel.GetVideos().ConfigureAwait(false);
     });
     Activity.InvalidateOptionsMenu();
 }