Code:
/ 4.0 / 4.0 / 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. 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
- XmlElementCollection.cs
- DisposableCollectionWrapper.cs
- StringUtil.cs
- SecurityCookieModeValidator.cs
- FrameworkRichTextComposition.cs
- Parameter.cs
- OracleTransaction.cs
- StylusOverProperty.cs
- validationstate.cs
- AlphabeticalEnumConverter.cs
- XPathExpr.cs
- ValidationErrorCollection.cs
- WindowsUpDown.cs
- FrameworkElementAutomationPeer.cs
- Literal.cs
- EntityViewGenerationConstants.cs
- DataControlPagerLinkButton.cs
- DebugHandleTracker.cs
- Mapping.cs
- dsa.cs
- DnsEndpointIdentity.cs
- XmlMapping.cs
- TableLayoutSettingsTypeConverter.cs
- GeneratedContractType.cs
- DataGridViewComboBoxEditingControl.cs
- PartialTrustVisibleAssemblyCollection.cs
- HtmlElementEventArgs.cs
- XmlnsDictionary.cs
- WebContext.cs
- Operand.cs
- DescendentsWalker.cs
- RangeValidator.cs
- OdbcUtils.cs
- Internal.cs
- Interlocked.cs
- DataGridViewLinkColumn.cs
- InlineCollection.cs
- WeakReference.cs
- CompositeDataBoundControl.cs
- SpotLight.cs
- WebColorConverter.cs
- UpdateException.cs
- TransactionTraceIdentifier.cs
- WsatExtendedInformation.cs
- Trigger.cs
- XmlComment.cs
- OutputScopeManager.cs
- X509Certificate2.cs
- StringUtil.cs
- TransactionScopeDesigner.cs
- RtfToken.cs
- FileSecurity.cs
- SspiSafeHandles.cs
- UnmanagedMemoryAccessor.cs
- SimpleHandlerBuildProvider.cs
- XmlChoiceIdentifierAttribute.cs
- HwndKeyboardInputProvider.cs
- PointCollectionConverter.cs
- ExternalDataExchangeService.cs
- TextOptionsInternal.cs
- SchemaType.cs
- HitTestWithPointDrawingContextWalker.cs
- UpdateException.cs
- WebServiceParameterData.cs
- TaskFileService.cs
- CodeTypeConstructor.cs
- ProviderConnectionPoint.cs
- TypeDescriptionProviderAttribute.cs
- NetStream.cs
- ListItemConverter.cs
- ToolStripCodeDomSerializer.cs
- X509AsymmetricSecurityKey.cs
- DecimalAverageAggregationOperator.cs
- BlockUIContainer.cs
- TypeUnloadedException.cs
- Stack.cs
- EncodingDataItem.cs
- SmiContext.cs
- BufferedReadStream.cs
- AccessDataSourceView.cs
- ImportOptions.cs
- BlurBitmapEffect.cs
- X509ChainPolicy.cs
- Monitor.cs
- XPathConvert.cs
- ListViewGroupItemCollection.cs
- ClientScriptManager.cs
- Int32AnimationUsingKeyFrames.cs
- EventDescriptor.cs
- SqlDataSourceSelectingEventArgs.cs
- EncryptedType.cs
- XmlCustomFormatter.cs
- ManipulationStartingEventArgs.cs
- ChangeProcessor.cs
- DataRow.cs
- XMLDiffLoader.cs
- MatrixCamera.cs
- DataGridViewCellEventArgs.cs
- MSAANativeProvider.cs
- TransformerTypeCollection.cs