예제 #1
0
        public PageControl()
        {
            InitializeComponent();
            var pageControlViewModel = new PageControlViewModel();

            DataContext = pageControlViewModel;
            pageControlViewModel.NumInPageControlDataContext = 3;

            var gridViewModel = new GridViewModel();

            SubGrid.DataContext = gridViewModel;
            gridViewModel.NumInGridDataContext = 10;
        }
예제 #2
0
 public void SetUp()
 {
     _pageControlViewModel = new PageControlViewModel();
     _pageMock             = new Mock <IPage>();
 }