示例#1
0
        public WindowPrincipale()
        {
            InitializeComponent();
            Filieres usercontrol = new Filieres();

            Principale.Children.Add(usercontrol);
        }
示例#2
0
        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;
        }