NET Reflector, by a great wizard called Lutz Roeder. “A long long time ago when I was a kid there existed a tool called OnCollectionChanged( new 圜ollectionChangedEventArgs(圜ollectionChangedAction.Reset)) Īs I use to start stories to my kids when they go to bed: If (list = null) throw new ArgumentNullException( "list") / /// Adds a collection suppressing notification per item and just raising a notification /// for the whole collection /// /// public void AddRange(IEnumerable list) Protected override void OnCollectionChanged(圜ollectionChangedEventArgs e) If (!_suppressNotification) base.OnPropert圜hanged(e) Protected override void OnPropert圜hanged(圜hangedEventArgs e) Public RangeObservableCollection() : base() Private bool _suppressNotification = false
#Vbuc custom code
So if you have some code like: for( int i=0 i : ObservableCollection Look at me!! Look at Me!!! Look Mom No Hands!!! Look Dad no Feet!!! HEY!!!!!!!!
ObservableCollections are a bit of an exhibitionist. Usually those components are bind to ObservableCollections. I know, I know maybe you should choose another way to show that data,īut leaving philosophical-ui design discussions, the real problem is that Silverlight is when you have to add a lot of items. In // Tags: VB6 Migration, vb6migration, VB.NET, Vb, Silverlight, ListBox, Performance, Slow, lot, Items, ObservableCollection, ComboBox // WriteableBitmap wb = texture.GetWriteableBitmap() Texture is another class in this sample that will return a writeable Bitmap //And with that texture object you just load the image like this: With this code you can do something beautiful like this: Stream file = … However, Jesus found a interesting solution. Is caused if the data is in an invalid or unsupported format. Something like: var stream = new MemoryStream(data) ĭuring this interesting test the infamous Catastrophic failure was raised. Once he got the scanner to work, he had to send that data to the Silverlight app. We has been implementing some code so we can connectĪ WIA compatible scanner with a Silverlight App. My friend Jesus has been working on an interesting task. In General // Tags: Silverlight, Catastrophic, BMP, Decoder, failure, setSource //