void HandleBundlesChanged(object sender, BundleCollectionChangedEventArgs e) { readOnlyBundlesLock.EnterWriteLock(); try { readOnlyBundles = e.Bundles; } finally { readOnlyBundlesLock.ExitWriteLock(); } }