Mercurial > silverbladetech
view SilverlightGlimpse/SilverlightValidation/Views/UserListView.xaml.cs @ 71:96e6fbd70f49
Latest version
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 14:54:24 +0100 |
parents | a0bcd783e612 |
children | 177a9d1eba10 |
line wrap: on
line source
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 readonly UserListViewModel vm; public UserListView() { InitializeComponent(); HtmlPage.Document.SetProperty("title", "Silverlight Glimpse Demo"); 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; } } }