view 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
line wrap: on
line source

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
{
    public partial class MainPage : UserControl
    {
        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;
        }
    }
}