diff SilverlightGlimpse/SilverlightGlimpse.Test/MainPage.xaml.cs @ 63:536498832a79

Latest version before changing bindings to Listbox
author Steven Hollidge <stevenhollidge@hotmail.com>
date Sun, 22 Apr 2012 13:33:42 +0100
parents 810116cd6b8e
children ba89e36631bc
line wrap: on
line diff
--- a/SilverlightGlimpse/SilverlightGlimpse.Test/MainPage.xaml.cs	Sun Apr 22 09:01:20 2012 +0100
+++ b/SilverlightGlimpse/SilverlightGlimpse.Test/MainPage.xaml.cs	Sun Apr 22 13:33:42 2012 +0100
@@ -1,37 +1,13 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-using System.Dynamic;
-
-namespace SilverlightGlimpse.Test
+namespace SilverlightGlimpse.Test
 {
-    public partial class MainPage : UserControl
+    public partial class MainPage
     {
         public MainPage()
         {
             InitializeComponent();
-            throw new Exception("Test");
-        }
 
-        private void Button_Click(object sender, RoutedEventArgs e)
-        {
-            var list = new List<object>(5)
-            {
-                new { Id = 1 , Name = "Steve"},
-                new { Id = 2 , Name = "Dave"},
-                new { Id = 3 , Name = "Bob"},
-                new { Id = 4 , Name = "Rich"},
-                new { Id = 5 , Name = "Clare"}
-            };
-            this.DataContext = list;
+            // uncomment this exception to view exception on startup 
+            //throw new Exception("This exception has been thrown to demonstrate an exception during startup", new Exception("This is an inner exception"));
         }
     }
 }