Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }