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
- CodeThrowExceptionStatement.cs
- HierarchicalDataBoundControlAdapter.cs
- SoapDocumentMethodAttribute.cs
- SectionInformation.cs
- TranslateTransform.cs
- DrawingBrush.cs
- XmlArrayItemAttribute.cs
- PropertyBuilder.cs
- Scripts.cs
- IdentifierService.cs
- SystemFonts.cs
- DocumentOrderQuery.cs
- QuaternionKeyFrameCollection.cs
- CachedPathData.cs
- SqlUtil.cs
- LinkClickEvent.cs
- OrCondition.cs
- DataReceivedEventArgs.cs
- UnhandledExceptionEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- TimeoutValidationAttribute.cs
- GeneralTransform3D.cs
- CustomExpression.cs
- ComEventsMethod.cs
- invalidudtexception.cs
- StringValidatorAttribute.cs
- CompareInfo.cs
- ScopedKnownTypes.cs
- CallContext.cs
- FixedSOMPageConstructor.cs
- VideoDrawing.cs
- DataGridViewRowCancelEventArgs.cs
- PersonalizableAttribute.cs
- IntegerValidatorAttribute.cs
- BuildManager.cs
- ImageButton.cs
- PropagationProtocolsTracing.cs
- TextEditorSelection.cs
- NoneExcludedImageIndexConverter.cs
- ReflectPropertyDescriptor.cs
- FileSystemInfo.cs
- ResourceContainer.cs
- XPathScanner.cs
- StrongNameKeyPair.cs
- PropertyNames.cs
- SkinBuilder.cs
- RotateTransform3D.cs
- ThicknessAnimation.cs
- HttpTransportManager.cs
- GradientPanel.cs
- ProfileProvider.cs
- SystemException.cs
- PatternMatcher.cs
- dsa.cs
- EntityTemplateFactory.cs
- CommandBindingCollection.cs
- ListMarkerSourceInfo.cs
- ErrorWrapper.cs
- TextServicesHost.cs
- SmiEventStream.cs
- Crypto.cs
- shaperfactoryquerycachekey.cs
- ToolZone.cs
- OutputCacheProfileCollection.cs
- PeerDefaultCustomResolverClient.cs
- JsonServiceDocumentSerializer.cs
- ComplexObject.cs
- EdmComplexPropertyAttribute.cs
- MembershipPasswordException.cs
- _AcceptOverlappedAsyncResult.cs
- ProxyAttribute.cs
- TriggerBase.cs
- DeclarativeCatalogPart.cs
- ConfigXmlAttribute.cs
- ResourceReferenceExpression.cs
- Events.cs
- AccessDataSourceView.cs
- SQlBooleanStorage.cs
- Dictionary.cs
- WindowsGraphicsWrapper.cs
- ColorTransform.cs
- ExtendedPropertyCollection.cs
- DiagnosticTrace.cs
- XmlSchemaAnyAttribute.cs
- EntityCommand.cs
- CreationContext.cs
- PrimitiveSchema.cs
- Axis.cs
- NeutralResourcesLanguageAttribute.cs
- ImageSource.cs
- IImplicitResourceProvider.cs
- pingexception.cs
- HasCopySemanticsAttribute.cs
- StringAnimationUsingKeyFrames.cs
- TypeSource.cs
- TextReader.cs
- LongTypeConverter.cs
- SelectionChangedEventArgs.cs
- UdpContractFilterBehavior.cs
- ImmutableClientRuntime.cs