Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / ResourceDictionaryCollection.cs / 1305600 / ResourceDictionaryCollection.cs
using System; using System.Windows; using System.Collections.ObjectModel; using System.Diagnostics; namespace System.Windows { internal class ResourceDictionaryCollection : ObservableCollection{ #region Constructor internal ResourceDictionaryCollection(ResourceDictionary owner) { Debug.Assert(owner != null, "ResourceDictionaryCollection's owner cannot be null"); _owner = owner; } #endregion Constructor #region ProtectedMethods /// /// Called by base class Collection<T> when the list is being cleared; /// raises a CollectionChanged event to any listeners. /// protected override void ClearItems() { for (int i=0; i/// Called by base class Collection<T> when an item is added to list; /// raises a CollectionChanged event to any listeners. /// protected override void InsertItem(int index, ResourceDictionary item) { if (item == null) { throw new ArgumentNullException("item"); } base.InsertItem(index, item); } /// /// Called by base class Collection<T> when an item is set in list; /// raises a CollectionChanged event to any listeners. /// protected override void SetItem(int index, ResourceDictionary item) { if (item == null) { throw new ArgumentNullException("item"); } base.SetItem(index, item); } #endregion ProtectedMethods #region Data private ResourceDictionary _owner; #endregion Data } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceReflector.cs
- XmlEventCache.cs
- DataServiceHostFactory.cs
- SpnEndpointIdentityExtension.cs
- Clause.cs
- AsyncOperationManager.cs
- DesignerForm.cs
- FormViewUpdatedEventArgs.cs
- NetworkStream.cs
- StateManagedCollection.cs
- GC.cs
- StructuralType.cs
- ColumnMapTranslator.cs
- FixedSOMTableCell.cs
- BinaryCommonClasses.cs
- LogLogRecord.cs
- LocalizabilityAttribute.cs
- COM2PropertyBuilderUITypeEditor.cs
- MatrixTransform.cs
- MimePart.cs
- SHA512Managed.cs
- FixedTextView.cs
- ChooseAction.cs
- MatrixValueSerializer.cs
- AsymmetricKeyExchangeDeformatter.cs
- DuplicateWaitObjectException.cs
- GroupQuery.cs
- ErrorRuntimeConfig.cs
- SapiRecognizer.cs
- NoPersistHandle.cs
- PointAnimationClockResource.cs
- NumberFormatInfo.cs
- OptimizerPatterns.cs
- TheQuery.cs
- CodeCatchClause.cs
- MimeObjectFactory.cs
- TableProviderWrapper.cs
- sqlstateclientmanager.cs
- WebProxyScriptElement.cs
- SqlConnectionHelper.cs
- TextRangeAdaptor.cs
- AccessibleObject.cs
- UnsafeNativeMethodsTablet.cs
- COM2TypeInfoProcessor.cs
- ProxyWebPartConnectionCollection.cs
- ProcessProtocolHandler.cs
- Common.cs
- HwndProxyElementProvider.cs
- ItemContainerGenerator.cs
- InputDevice.cs
- XmlUTF8TextWriter.cs
- DataGridViewTextBoxEditingControl.cs
- TreeView.cs
- RemoteCryptoDecryptRequest.cs
- RawMouseInputReport.cs
- NavigationPropertyEmitter.cs
- SettingsPropertyIsReadOnlyException.cs
- DataBindingHandlerAttribute.cs
- OutputCacheSettings.cs
- FixUp.cs
- DebugViewWriter.cs
- FileDetails.cs
- __Filters.cs
- GenericArgumentsUpdater.cs
- SystemTcpConnection.cs
- BuilderElements.cs
- OutputCacheProfile.cs
- ApplicationCommands.cs
- CounterCreationData.cs
- InvalidCastException.cs
- AdapterDictionary.cs
- ConnectionPoint.cs
- EntityCollection.cs
- EditBehavior.cs
- ConnectionProviderAttribute.cs
- ApplicationActivator.cs
- ValidatedControlConverter.cs
- PeerIPHelper.cs
- IConvertible.cs
- DesignerActionVerbList.cs
- XhtmlBasicControlAdapter.cs
- AccessViolationException.cs
- LateBoundBitmapDecoder.cs
- HelpEvent.cs
- QilStrConcat.cs
- LayoutEngine.cs
- assemblycache.cs
- ToolStripDropTargetManager.cs
- DebugInfoExpression.cs
- ActivationServices.cs
- _ShellExpression.cs
- BoundField.cs
- OutputChannel.cs
- MaterialGroup.cs
- wgx_exports.cs
- PagesSection.cs
- FixedSOMSemanticBox.cs
- DefaultPrintController.cs
- FragmentQuery.cs
- SqlCommandBuilder.cs