Mercurial > silverbladetech
comparison SilverlightGlimpse/SilverlightGlimpse.Test/MainPage.xaml.cs @ 62:810116cd6b8e
ErrorWindow working
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Sun, 22 Apr 2012 09:01:20 +0100 |
parents | |
children | 536498832a79 |
comparison
equal
deleted
inserted
replaced
61:9de81c9ad319 | 62:810116cd6b8e |
---|---|
1 using System; | |
2 using System.Collections.Generic; | |
3 using System.Linq; | |
4 using System.Net; | |
5 using System.Windows; | |
6 using System.Windows.Controls; | |
7 using System.Windows.Documents; | |
8 using System.Windows.Input; | |
9 using System.Windows.Media; | |
10 using System.Windows.Media.Animation; | |
11 using System.Windows.Shapes; | |
12 using System.Dynamic; | |
13 | |
14 namespace SilverlightGlimpse.Test | |
15 { | |
16 public partial class MainPage : UserControl | |
17 { | |
18 public MainPage() | |
19 { | |
20 InitializeComponent(); | |
21 throw new Exception("Test"); | |
22 } | |
23 | |
24 private void Button_Click(object sender, RoutedEventArgs e) | |
25 { | |
26 var list = new List<object>(5) | |
27 { | |
28 new { Id = 1 , Name = "Steve"}, | |
29 new { Id = 2 , Name = "Dave"}, | |
30 new { Id = 3 , Name = "Bob"}, | |
31 new { Id = 4 , Name = "Rich"}, | |
32 new { Id = 5 , Name = "Clare"} | |
33 }; | |
34 this.DataContext = list; | |
35 } | |
36 } | |
37 } |