public PhotoListPage()
        {
            InitializeComponent();

            On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);

            vm             = new PhotosListViewModel();
            BindingContext = vm;

            LoadPhotoCollection();
        }
Exemple #2
0
        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();
            });
        }