I have a small problem, suppose I have the following MainWindow.xaml:
<Window x:Class="DragDrop.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ListBox Name="ListBoxLeft" />
<ListBox Name="ListBoxRight" Grid.Column="1" />
</Grid>
</Window>
and now I would simply like bind <ListBox Name="ListBoxLeft" /> to my property public List<User> UserListLeft;. How can I achieve this? How should I specify the DataContext?
All properties are just simply listed in MainWindow.xaml.cs.
Note: I do not use the MVVM model.
Thanks