public WindowPrincipale() { InitializeComponent(); Filieres usercontrol = new Filieres(); Principale.Children.Add(usercontrol); }
private void FieldManagmentButton_Click(object sender, RoutedEventArgs e) { Principale.Children.Clear(); Filieres usercontrol = new Filieres(); Principale.Children.Add(usercontrol); Storyboard s = (Storyboard)TryFindResource("CloseMenu"); s.Begin(); ButtonClose.Visibility = Visibility.Collapsed; ButtonClose2.Visibility = Visibility.Visible; ButtonOpenMenu.Visibility = Visibility.Visible; ButtonCloseMenu.Visibility = Visibility.Collapsed; }