using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace GridViewComboBox_BoundToList
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			InitializeComponent();
			GridView.ItemsSource = new[]
			{
				new Person{
					Name = "John Smith",
					Age = 24,
					Type = "type1.1",
					Types = new List<string>(){"type1.1", "type1.1", "type1.2"}
				},
				new Person{
					Name = "Peter Smoulder",
					Age = 34,
					Type = "type2.1",	
					Types = new List<string>(){"type2.1", "type2.1", "type2.2"}
				},
				new Person{
				Name = "George Peterson",
				Age = 86,
				Type = "type3.1",
				Types = new List<string>(){"type3.1", "type3.1", "type3.2"}
			}
			};
		}
	}
}	