Mercurial > silverbladetech
comparison SilverlightGlimpse/SilverlightValidation/Views/UserListView.xaml.cs @ 69:a0bcd783e612
Latest work
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 11:06:10 +0100 |
parents | |
children | 96e6fbd70f49 |
comparison
equal
deleted
inserted
replaced
68:81337ebf885a | 69:a0bcd783e612 |
---|---|
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 } |