Ejemplo 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;
        }
Ejemplo 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;
        }