Created
October 3, 2012 22:25
-
-
Save JohanLarsson/3830277 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
namespace DataGridDummy | |
{ | |
/// <summary> | |
/// Interaction logic for MainWindow.xaml | |
/// </summary> | |
public partial class MainWindow : Window | |
{ | |
public MainWindow() | |
{ | |
Names= new ObservableCollection<string>(new List<string>(){"Johan"}); | |
this.DataContext = Names; | |
InitializeComponent(); | |
} | |
public ObservableCollection<string> 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