Пример #1
0
        public StudentUC()
        {
            InitializeComponent();

            if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            {
                _viewModel = FindResource("studentViewModel") as StudentViewModel;
                _viewModel.SetStudentModel(new StudentModel());
                this.StudentInformationUc.SetStudentViewModel(_viewModel);
            }
        }
 public void SetStudentViewModel(StudentViewModel viewModel)
 {
     this._viewModel = viewModel;
 }