Exemple #1
0
        void SearchBar_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            var _container = BindingContext as ShipsViewModel;

            ShipsView.BeginRefresh();

            if (string.IsNullOrWhiteSpace(e.NewTextValue))
            {
                ShipsView.ItemsSource = _container.Items;
            }
            else
            {
                ShipsView.ItemsSource = _container.Items.Where(i => i.name.ToLower().Contains(e.NewTextValue));
            }

            ShipsView.EndRefresh();
        }
 public void ShowShipsFilteredByFaction()
 {
     ShowLoadingContentStub("Ship");
     ShipsView.ShowAvailableShips(Model.CurrentSquad.SquadFaction);
     UpdateSquadCost("SelectShipPanel");
 }