public PhotoListPage() { InitializeComponent(); On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true); vm = new PhotosListViewModel(); BindingContext = vm; LoadPhotoCollection(); }
public PhotoListPage() { InitializeComponent(); On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true); vm = new PhotosListViewModel(); BindingContext = vm; MessagingCenter.Subscribe <BlockUserMessage>(this, BlockUserMessage.Message, async(obj) => { vm.CurrentPage = 1; await LoadPhotoCollection(); }); }