コード例 #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;
        }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: ne4ta/SpecExpress
        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;
        }