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
- CryptoApi.cs
- CatalogZone.cs
- ThicknessAnimationUsingKeyFrames.cs
- _NetRes.cs
- PagerSettings.cs
- Visitors.cs
- PrefixHandle.cs
- FlowDocumentPageViewerAutomationPeer.cs
- FixedSOMContainer.cs
- NotifyParentPropertyAttribute.cs
- errorpatternmatcher.cs
- ProfilePropertyNameValidator.cs
- ElementAction.cs
- QEncodedStream.cs
- OutKeywords.cs
- BitmapInitialize.cs
- xmlglyphRunInfo.cs
- Blend.cs
- NonDualMessageSecurityOverHttp.cs
- StaticFileHandler.cs
- SynchronizationContext.cs
- EntityTypeEmitter.cs
- RegexTree.cs
- Int32RectValueSerializer.cs
- TableLayoutPanel.cs
- BooleanAnimationBase.cs
- BuilderPropertyEntry.cs
- FlowLayoutSettings.cs
- StorageEntityTypeMapping.cs
- ColumnResizeAdorner.cs
- TextContainerChangedEventArgs.cs
- CryptoProvider.cs
- NotFiniteNumberException.cs
- WebPartCatalogCloseVerb.cs
- PackagingUtilities.cs
- DataRecordInfo.cs
- SafeEventLogWriteHandle.cs
- documentsequencetextpointer.cs
- __Error.cs
- TraceUtility.cs
- AttributeCollection.cs
- ObjectStateEntry.cs
- ResetableIterator.cs
- InitializationEventAttribute.cs
- FrameworkTextComposition.cs
- versioninfo.cs
- PropertyBuilder.cs
- StylusButton.cs
- ScopelessEnumAttribute.cs
- PasswordRecovery.cs
- ToolStripStatusLabel.cs
- PathSegment.cs
- UnhandledExceptionEventArgs.cs
- ServicePoint.cs
- SmtpFailedRecipientsException.cs
- Binding.cs
- Activity.cs
- ObjectDataProvider.cs
- Expression.cs
- ListBindingHelper.cs
- ShadowGlyph.cs
- TTSEngineTypes.cs
- Propagator.Evaluator.cs
- ExpressionBindings.cs
- AspProxy.cs
- MultiTouchSystemGestureLogic.cs
- ZipFileInfo.cs
- WindowsPrincipal.cs
- ProfilePropertySettings.cs
- BaseTemplatedMobileComponentEditor.cs
- CommentAction.cs
- PenThreadWorker.cs
- VisualStateGroup.cs
- DateBoldEvent.cs
- Expression.cs
- Attributes.cs
- TextTreeObjectNode.cs
- DataPagerFieldCollection.cs
- MDIClient.cs
- BindingNavigator.cs
- ConfigurationManagerHelper.cs
- ControlType.cs
- OutOfProcStateClientManager.cs
- EntityDataSourceDesignerHelper.cs
- ComponentResourceKeyConverter.cs
- CompositeFontInfo.cs
- DependencyObjectProvider.cs
- DispatcherObject.cs
- WebPartConnectionsDisconnectVerb.cs
- ExtensionSimplifierMarkupObject.cs
- DefaultAssemblyResolver.cs
- ContentHostHelper.cs
- XPathNodeInfoAtom.cs
- AutomationPatternInfo.cs
- VectorCollectionConverter.cs
- ButtonChrome.cs
- Token.cs
- XmlSerializationWriter.cs
- TextServicesDisplayAttribute.cs
- TileModeValidation.cs