Mercurial > silverbladetech
view SilverlightGlimpse/SilverlightValidation/Views/UserListView.xaml.cs @ 82:352ecaa4fcfd
remove sharpnel
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 23:20:21 +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")); } } }