private void homeBtn_Click(object sender, RoutedEventArgs e)
        {
            selectionGrid.Children.Clear();
            Accueil accueil = new Accueil();

            selectionGrid.Children.Add(accueil);
        }
        private void textBlock_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            selectionGrid.Children.Clear();
            Accueil accueil = new Accueil();

            selectionGrid.Children.Add(accueil);
        }
        public MainWindow()
        {
            InitializeComponent();
            Accueil home = new Accueil();

            selectionGrid.Children.Add(home);
        }
Beispiel #4
0
        private void homeBtn_Click(object sender, RoutedEventArgs e)
        {
            var parent = (Grid)this.Parent;

            parent.Children.Clear();
            Accueil accueil = new Accueil();

            parent.Children.Add(accueil);
        }