Mercurial > silverbladetech
view SilverlightGlimpse/SilverlightValidation/Views/UserListView.xaml.cs @ 100:9b6855dc165e
Updated System.Windows into Libs
author | stevenhollidge <stevenhollidge@hotmail.com> |
---|---|
date | Sat, 05 May 2012 23:04:16 +0100 |
parents | 177a9d1eba10 |
children |
line wrap: on
line source
using System; 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; } private void btnThrowException_Click(object sender, System.Windows.RoutedEventArgs e) { throw new Exception("Oh dear we've hit an exception!", new Exception("This is an inner exception")); } } }