I have a List of Lists object:
List> MovieList
This MovieList object is a collection of lists of movies, each based
MVVM solution:
MainWindow:
var moviesView = new MoviesView();
moviesView.DataContext = new MoviesViewModel { MovieList = ... };
MoviesViewModel.cs:
public class MoviesViewModel
{
public ObservableCollection<List<Movie>> MovieList
{
get;
set;
}
}
MoviesView.xaml
<ListView ItemsSource="{Binding MovieList}">
<ListView.ItemTemplate>
<DataTemplate>
<ListView ItemsSource="{Binding}">
<ListView.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Title}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>