Ejemplo n.º 1
0
        private async Task FillScreen()
        {
            var width  = Application.Current.MainPage.Width;
            var height = Application.Current.MainPage.Height;

            await Task.WhenAll(
                TopIcon.TranslateTo(0, height / 8, 500),
                TopIcon.ScaleTo(1.5, 500),
                TitleLabel.FadeTo(0, 300),
                _rootView.LayoutTo(Rectangle.FromLTRB(0, 0, width, height), 800, Easing.SinIn)
                );
        }
Ejemplo n.º 2
0
        private async Task HideSearchBox()
        {
            var a1 = SearchBox.FadeTo(0, 200, Easing.SpringOut);
            var a4 = TitleLabel.FadeTo(1, 200, Easing.SpringOut);
            var a2 = SearchButton.FadeTo(1, 200, Easing.SpringOut);
            var a3 = CancelButton.FadeTo(0, 200, Easing.SpringOut);
            await Task.WhenAll(a1, a2, a3, a4);

            TitleLabel.IsVisible   = true;
            SearchBox.IsVisible    = false;
            SearchButton.IsVisible = true;
            CancelButton.IsVisible = false;
        }