コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Button thisbtn = (Button)e.Source;

            int index = int.Parse(thisbtn.Uid);

            var  par   = VisualTreeHelper.GetParent((Button)e.Source) as UIElement;
            Grid PGrid = (par as Grid);

            var  ParBoord  = VisualTreeHelper.GetParent(SelectedBord);
            Grid LastPGrid = ParBoord as Grid;

            LastPGrid.Children.Remove(SelectedBord);

            PGrid.Children.Add(SelectedBord);

            switch (index)
            {
            case 0:
                MetaDG frm = new MetaDG();
                ContentFrame.Content = frm;
                break;

            case 1:
                EvaluacionDG frm1 = new EvaluacionDG();
                ContentFrame.Content = frm1;
                break;

            case 2:
                TipoMetricaDG frm2 = new TipoMetricaDG();
                ContentFrame.Content = frm2;
                break;
            }
        }
コード例 #2
0
        public ActividadMenu()
        {
            InitializeComponent();

            MetaDG frm = new MetaDG();

            ContentFrame.Content = frm;
        }