void MainPage_Loaded(object sender, RoutedEventArgs e) { // Initialize the Validaiton Container ValidationCatalog.Scan(x => x.AddAssembly(typeof (Project).Assembly)); _model = new MainPageModel(new Project(){ProjectName = ""}); LayoutRoot.DataContext = _model; }
void MainPage_Loaded(object sender, RoutedEventArgs e) { // Initialize the Validaiton Container ValidationCatalog.Scan(x => x.AddAssembly(typeof(Project).Assembly)); _model = new MainPageModel(new Project() { ProjectName = "" }); LayoutRoot.DataContext = _model; }