Mercurial > silverbladetech
view SilverlightGlimpse/SilverlightValidation/Views/UserListView.xaml.cs @ 84:5cb6117d80b1
title removed
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Tue, 24 Apr 2012 00:51:53 +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")); } } }