Created
October 3, 2012 22:25
-
-
Save JohanLarsson/3830281 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Interaction logic for MainWindow.xaml | |
/// </summary> | |
public partial class MainWindow : Window | |
{ | |
public MainWindow() | |
{ | |
Names= new ObservableCollection<Person>(new List<Person>(){new Person(){Name = "Johan"}}); | |
this.DataContext = Names; | |
InitializeComponent(); | |
} | |
public ObservableCollection<Person> Names { get; set; } | |
} | |
public class Person | |
{ | |
public string Name { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment