comparison delete me/SilverlightValidation/Views/UserListView.xaml.cs @ 59:3591c26bd63e

MVVMLight added
author Steven Hollidge <stevenhollidge@hotmail.com>
date Sat, 21 Apr 2012 19:20:28 +0100
parents
children
comparison
equal deleted inserted replaced
58:241e2f22ed3c 59:3591c26bd63e
1 using System.Windows.Browser;
2 using System.Windows.Input;
3 using SilverlightValidation.Data;
4 using SilverlightValidation.ViewModels;
5 using SilverlightValidation.Validators;
6
7 namespace SilverlightValidation.Views
8 {
9 public partial class UserListView
10 {
11 private UserListViewModel vm;
12
13 public UserListView()
14 {
15 InitializeComponent();
16 HtmlPage.Document.SetProperty("title", "Silverlight Validation");
17
18 vm = new UserListViewModel(Factory.CreateUserModels(), new UserModelValidator());
19 this.DataContext = vm;
20 }
21
22 private void DatePicker_KeyDown(object sender, KeyEventArgs e)
23 {
24 if (e.Key != Key.Tab)
25 e.Handled = true;
26 }
27 }
28 }