コード例 #1
0
        private void CloseSearchTapped(object sender, EventArgs e)
        {
            LblSearchIcon.IsVisible = true;
            ImgFindVipTable.TranslateTo(0, 0, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            SearchBarGrid.TranslateTo(0, 0, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            Rectangle searchBarGridBounds = SearchBarGrid.Bounds;

            searchBarGridBounds.Height = searchBarGridBounds.Height - ImgFindVipTable.Margin.Top;
            SearchBarGrid.Layout(searchBarGridBounds);
            FilterScroll.TranslateTo(0, AppThemeConstants.ScreenHeight, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            FilterScroll.FadeTo(0, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            CIUserIco.FadeTo(1, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            MainGrid.RaiseChild(FrNearBy);
            MainGrid.RaiseChild(CIUserIco);
            TxtSearch.Text = string.Empty;
            TxtSearch.Unfocus();
        }
コード例 #2
0
        private void SearchFocused(object sender, EventArgs e)
        {
            MainGrid.RaiseChild(TopContainerStack);
            MainGrid.RaiseChild(CIUserIco);
            SearchBarGrid.RaiseChild(FrmSearchbar);

            _suggestionContainerRectangle = SuggestionsContainerStack.Bounds.Height > _suggestionContainerRectangle.Height ? SuggestionsContainerStack.Bounds : _suggestionContainerRectangle;

            SuggestionsContainerStack.IsVisible = false;

            ImgFindVipTable.TranslateTo(0, -ImgFindVipTable.Margin.Top, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            SearchBarGrid.TranslateTo(0, -ImgFindVipTable.Margin.Top, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            Rectangle searchBarGridBounds = SearchBarGrid.Bounds;

            searchBarGridBounds.Height = searchBarGridBounds.Height + ImgFindVipTable.Margin.Top;
            SearchBarGrid.Layout(searchBarGridBounds);
            FilterScroll.TranslateTo(0, 0, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            FilterScroll.FadeTo(1, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            CIUserIco.FadeTo(0, AppThemeConstants.AnimationSpeed, Easing.SinInOut);
            LblSearchIcon.IsVisible = false;
        }