I'm running into OutOfMemoryExceptions when assigning 25k rows to the XamDataChart CategoryDateTimeAxis. I know this is a broad question but should I be running into this issue?
FYI: I'm using full dependencyobjects with multiple bindings per VM class in the collection
Hmm... why are you using full dependency objects? The chart only requires INotifyPropertyChanged to receive updates from your objects. We've put a LOT more data into CategoryDateTimeXAxis than that before without hitting out of memory exceptions, so there is either something specific to this scenario, or it is more likely all the bindings or dependency objects that are chewing up the memory. I know for a fact that creating lots of individual Bindings can run you out of memory pretty quickly, which is one of the reasons that the Chart does NOT do that internally.
BTW, a sample project reproducing the issue would help track down the culprit.
There really isn't a downside (that I know of) for using DPs exclusively besides threading, and I suppose memory consumption if you are correct. Thanks for the quick reply.
Typically I wouldn't use view models with dependency properties because they would implement DependencyObject. That class is sealed, and so you can't implement Equals and GetHashCode in your view models. That would be hugely limiting.
Hello Myles,
Thank you for the feedback. Please do not hesitate to let us know if you have any further questions on this matter.