//-----------------------BOTON BUSCAR------------------------------ private void BuscarButton_Click(object sender, RoutedEventArgs e) { var persona = PersonasBLL.Buscar(PersonasBLL.ToInt(IdTextBox.Text)); if (Personas != null) { this.Personas = Personas; } else { this.Personas = new Personas(); } this.DataContext = this.Personas; }