Mercurial > silverbladetech
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightGlimpse/SilverlightValidation/Views/UserListView.xaml.cs Mon Apr 23 11:06:10 2012 +0100 @@ -0,0 +1,28 @@ +using System.Windows.Browser; +using System.Windows.Input; +using SilverlightValidation.Data; +using SilverlightValidation.ViewModels; +using SilverlightValidation.Validators; + +namespace SilverlightValidation.Views +{ + public partial class UserListView + { + private UserListViewModel vm; + + public UserListView() + { + InitializeComponent(); + HtmlPage.Document.SetProperty("title", "Silverlight Validation"); + + vm = new UserListViewModel(Factory.CreateUserModels(), new UserModelValidator()); + this.DataContext = vm; + } + + private void DatePicker_KeyDown(object sender, KeyEventArgs e) + { + if (e.Key != Key.Tab) + e.Handled = true; + } + } +}