コード例 #1
0
        public PhotoListPage()
        {
            InitializeComponent();

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

            vm             = new PhotosListViewModel();
            BindingContext = vm;

            LoadPhotoCollection();
        }
コード例 #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();
            });
        }