private void Button_Click_1(object sender, RoutedEventArgs e) { var producto = Todos.SelectedItem as Product; Detalle dp = new Detalle(producto, this); dp.Show(); this.Hide(); }