Exemplo n.º 1
0
        async void OnSelectMyOrderStatus(object sender, EventArgs e)
        {
            CellTemplate orderStatusCell = sender as CellTemplate;

//			CellTemplate Content = sender as CellTemplate;
//			Content.BackgroundColor = ApplicationStyle.LineColor;
//			if (Content.SelectedItem != null) {
            if (listViewStatus.IsVisible)
            {
                await scrollBody.ScrollToAsync(0, 0, true);

                listViewStatus.IsVisible = false;
                orderStatusCell.SetLeft();
            }
            else
            {
                listViewStatus.IsVisible = true;
                await Task.Delay(10);

                await scrollBody.ScrollToAsync(listViewStatus, ScrollToPosition.End, true);

                orderStatusCell.SetDown();
            }
//			}
//			Content.SelectedItem = null;
        }
Exemplo n.º 2
0
        async void OnSelectSize(object sender, EventArgs e)
        {
            CellTemplate orderStatusCell = sender as CellTemplate;

            if (listSizes.IsVisible)
            {
                await this.ScrollToAsync(0, 0, true);

                listSizes.IsVisible = false;
                orderStatusCell.SetLeft();
            }
            else
            {
                listSizes.IsVisible = true;
//				await this.ScrollToAsync (listSizes, ScrollToPosition.End, true);
                orderStatusCell.SetDown();
            }
        }