comparison SilverlightGlimpse/SilverlightValidation/Views/UserView.xaml.cs @ 69:a0bcd783e612

Latest work
author Steven Hollidge <stevenhollidge@hotmail.com>
date Mon, 23 Apr 2012 11:06:10 +0100
parents
children 86ed4919b126
comparison
equal deleted inserted replaced
68:81337ebf885a 69:a0bcd783e612
1 using System.Windows.Browser;
2 using System.Windows.Input;
3 using SilverlightValidation.Models;
4 using SilverlightValidation.Validators;
5 using SilverlightValidation.ViewModels;
6
7 namespace SilverlightValidation.Views
8 {
9 public partial class UserView
10 {
11 private UserViewModel vm;
12
13 public UserView()
14 {
15 InitializeComponent();
16 HtmlPage.Document.SetProperty("title", "Silverlight Validation");
17
18 vm = new UserViewModel(UserModel.Create(), 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 }