Beispiel #1
0
 public StatisticsPage()
 {
     InitializeComponent();
     ViewModel   = new StatisticsPageViewModel();
     DataContext = ViewModel;
     FrameStatistic.Navigate(new DiagnosticsPerRegion());
 }
Beispiel #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int uid = int.Parse(((Button)sender).Uid);

            var page = (Page)Activator.CreateInstance(ViewModel.Pages[uid]);

            FrameStatistic.Navigate(page);
        }