In terms of speed and number of generated notifications , this code:
ObservableCollection<Foo> foo = new ObservableCollection<Foo>(bar); this.SomeProperty = foo;
same as:
this.SomeProperty = new ObservableCollection<Foo>(); foreach (var v in bar) { this.SomeProperty.Add(v); }
If they are the same, is it possible to somehow disable the generated notifications?
Goal: I'm trying to speed up the show of Telerik RadChart in silverlight. It seems to take some time to display (and freeze in the browser application) even after setting a property containing an ObservableCollection. Once the chart is drawn, everything works correctly.
source share