Ejemplo n.º 1
0
        private void SearchBar_TextChanged(object sender, TextChangedEventArgs e)
        {
            if (string.IsNullOrEmpty(e.NewTextValue))
            {
                list.ItemsSource = Pais.GetList();
            }

            else
            {
                list.ItemsSource = Pais.GetList().Where(x => x.Nombre.ToLower().Contains(e.NewTextValue.ToLower()));
            }
        }
Ejemplo n.º 2
0
 public NewListaPaises()
 {
     InitializeComponent();
     list.ItemsSource = Pais.GetList();
 }