private async void OnCategoryTapped(object sender, EventArgs e)
        {
            var categoryChoosed = sender as RadBorder;

            if (categoryChoosed.BackgroundColor == BGColorActive)
            {
                return;
            }

            loadingPopup.IsVisible = true;

            //set active style to category choosed
            SetCategoryActiveStyle(categoryChoosed);

            //get category choosed
            var tap = categoryChoosed.GestureRecognizers[0] as TapGestureRecognizer;


            //get list product by category choosed
            if (tap.CommandParameter == null)
            {
                //get all product
                viewModel.FilterModel.CategoryId = null;
            }
            else
            {
                int categoryId = (int)tap.CommandParameter;
                //get product by categoryId
                viewModel.FilterModel.CategoryId = categoryId;
            }

            await viewModel.LoadOnRefreshCommandAsync();

            loadingPopup.IsVisible = false;
        }
        private async void FilterByStatus_Clicked(object sender, EventArgs e)
        {
            RadBorder radBoder = sender as RadBorder;

            if (radBoder.BackgroundColor == Color.FromHex("#eeeeee"))
            {
                return;
            }

            TapGestureRecognizer tapGestureRecognizer = radBoder.GestureRecognizers[0] as TapGestureRecognizer;

            if (tapGestureRecognizer.CommandParameter != null)
            {
                int Status = int.Parse(tapGestureRecognizer.CommandParameter.ToString());
                viewModel.FilterModel.Status = Status;
            }
            else
            {
                viewModel.FilterModel.Status = null;
            }
            loadingPopup.IsVisible = true;


            // inactive
            foreach (RadBorder item in StackLayoutFilter.Children)
            {
                item.BorderColor     = Color.FromHex("#eeeeee");
                item.BackgroundColor = Color.White;
            }
            // active.
            radBoder.BackgroundColor = Color.FromHex("#eeeeee");
            radBoder.BorderColor     = Color.FromHex("#aaaaaa");



            await viewModel.LoadOnRefreshCommandAsync();

            loadingPopup.IsVisible = false;
        }