In my C# WPF application i have a List of objects with about 900000 entries.
I want to display these entries in a List View. Therefor i create a new window like this:
System.Windows.Window myWin = new System.Windows.Window();
myWin.Content = new myResult();
myWin.Title = "Result";
myWin.Show();
The list is stored in the ViewModel. The XAML looks like:
<ListView
x:Name="myListView"
ItemsSource="{Binding ListSummary}"
>
<ListView.View>
...
During the line myWin.Show()
the program freezes and shows following exception:
Ein Ausnahmefehler des Typs "System.OutOfMemoryException" ist in PresentationCore.dll aufgetreten.
Is there a limitation in entries for the listview? I know 900000 entries seems to be very much but this is the common amount of entries in my business case.