Region or ItemsSource for large data set in ListBox
Posted
by
Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Ryan
Published on 2012-10-30T21:03:39Z
Indexed on
2012/10/30
23:01 UTC
Read the original article
Hit count: 185
I'm having trouble figuring out what the best solution is given the following situation. I'm using Prism 4.1, MEF, and .Net 4.0.
I have an object Project
that could have a large number (~1000) of Line
objects. I'm deciding whether it is better to expose an ObservableCollection<LineViewModel>
from my ProjectViewModel
and manually create the Line viewmodels there OR set the ListBox as it's own region and activate views that way.
I'd still want my LineViewModel
to have Prism's shared services (IEventAggregator, etc.) injected, but I don't know how to do that when I manually create the LineViewModel
. Any suggestions or thoughts?
© Stack Overflow or respective owner