void btn_profil_Click(object sender, RoutedEventArgs e)
        {
            UserControlProfil profil = new UserControls.UserControlProfil(this.homeViewModel);

            this.homeViewModel.home.Action.Children.Clear();
            this.homeViewModel.home.Action.Children.Add(profil);
        }
Esempio n. 2
0
        public HomeViewModel(Home home)
        {
            this.home = home;
            UserControlMenu   menu   = new UserControlMenu(this);
            UserControlProfil profil = new UserControls.UserControlProfil(this);

            //home.Action.Children.Clear();
            home.Menu.Children.Add(menu);
            home.Action.Children.Add(profil);
        }