private void txtfiltrador_TextChanged(object sender, TextChangedEventArgs e) { ClienteCollection c = new ClienteCollection(); if (txtfiltrador.Text.Length == 0) { dataGrid.ItemsSource = c.ReadAll(); return; } dataGrid.ItemsSource = c.Filtrados(txtfiltrador.Text); }