private void listeAcheteur(object sender, RoutedEventArgs e) { Child.Children.Clear(); listeAcheteurs listeAcheteur = new listeAcheteurs(); Child.Children.Add(listeAcheteur); }
private void returnListAcheteur(object sender, RoutedEventArgs e) { listeAcheteurs listeAcheteur = new listeAcheteurs(); var test = ((StackPanel)this.Parent); test.Children.Clear(); test.Children.Add(listeAcheteur); }