Пример #1
0
        private void listeAdmin(object sender, RoutedEventArgs e)
        {
            Child.Children.Clear();
            listeAdmins listeAdmin = new listeAdmins();

            Child.Children.Add(listeAdmin);
        }
        private void returnListAdmin(object sender, RoutedEventArgs e)
        {
            listeAdmins listeAdmin = new listeAdmins();

            var test = ((StackPanel)this.Parent);

            test.Children.Clear();
            test.Children.Add(listeAdmin);
        }