Created
June 21, 2012 03:27
-
-
Save mabster/2963641 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
// in MainWindow.xaml: | |
<Grid> | |
<ListBox ItemsSource="{Binding Items}" /> | |
</Grid> | |
// in MainWindow.xaml.cs | |
public MainWindow() | |
{ | |
InitializeComponent(); | |
this.DataContext = new | |
{ | |
Items = new[] | |
{ | |
"The quick", | |
"brown fox", | |
"jumps over", | |
"the lazy dog" | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment