public ArticlesListVariantPage()
        {
            InitializeComponent();

            BindingContext = new PostsViewModel();

            fetchActivityFeed();
        }
Exemplo n.º 2
0
        public OpenPost()
        {
            InitializeComponent();

            //NavigationPage.SetHasNavigationBar(this, false);

            var postsViewModel = new PostsViewModel();

            BindingContext = postsViewModel.PostsList [0];

            outerScrollView.Scrolled += (object sender, ScrolledEventArgs e) => {
                var imageHeight    = img.Height * 2;
                var scrollRegion   = layeringGrid.Height - outerScrollView.Height;
                var parallexRegion = imageHeight - outerScrollView.Height;
                var factor         = outerScrollView.ScrollY - parallexRegion * (outerScrollView.ScrollY / scrollRegion);
                img.TranslationY = factor;
                img.Opacity      = 1 - (factor / imageHeight);
                headers.Scale    = 1 - ((factor) / (imageHeight * 2));
            };
        }
        public ArticlesList()
        {
            InitializeComponent();

            BindingContext = new PostsViewModel();
        }