Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / ResourceDictionaryCollection.cs / 1 / 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
- BamlStream.cs
- XmlAtomicValue.cs
- CellParaClient.cs
- CodeThrowExceptionStatement.cs
- DbConnectionPoolCounters.cs
- UdpTransportBindingElement.cs
- codemethodreferenceexpression.cs
- OneToOneMappingSerializer.cs
- ExceptionHandler.cs
- PropertyToken.cs
- InvokeGenerator.cs
- AuthenticatedStream.cs
- XmlDownloadManager.cs
- StringFormat.cs
- Animatable.cs
- OpenTypeCommon.cs
- ToggleProviderWrapper.cs
- DBNull.cs
- CoreSwitches.cs
- Perspective.cs
- PasswordPropertyTextAttribute.cs
- AsnEncodedData.cs
- IsolatedStoragePermission.cs
- ControlCollection.cs
- ColumnResult.cs
- QueryOpcode.cs
- ProtocolsConfigurationEntry.cs
- ObjectDataSourceStatusEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- RC2.cs
- RetrieveVirtualItemEventArgs.cs
- DynamicMethod.cs
- precedingquery.cs
- AuthenticationManager.cs
- UnsafeNativeMethods.cs
- CodeGenerator.cs
- VerificationException.cs
- ScalarOps.cs
- DesignerWebPartChrome.cs
- DragStartedEventArgs.cs
- WebServiceErrorEvent.cs
- TypeReference.cs
- DesignerActionUIService.cs
- FontDifferentiator.cs
- DecimalKeyFrameCollection.cs
- HttpApplication.cs
- SimpleMailWebEventProvider.cs
- MailWriter.cs
- GridViewAutomationPeer.cs
- TemplateControl.cs
- LocalValueEnumerator.cs
- RectAnimationBase.cs
- HtmlValidationSummaryAdapter.cs
- EventBookmark.cs
- TemplatePropertyEntry.cs
- CompilerErrorCollection.cs
- RichTextBoxConstants.cs
- AccessDataSource.cs
- TransactionManagerProxy.cs
- ApplicationDirectory.cs
- XmlBaseWriter.cs
- XPathEmptyIterator.cs
- WebEventCodes.cs
- CodeMethodMap.cs
- QueueProcessor.cs
- HtmlTitle.cs
- DateTimeParse.cs
- UnauthorizedAccessException.cs
- PropertyEntry.cs
- PresentationTraceSources.cs
- PackageStore.cs
- Cloud.cs
- PageAsyncTask.cs
- ComplexLine.cs
- CLSCompliantAttribute.cs
- XmlWhitespace.cs
- ButtonBaseAutomationPeer.cs
- ProtectedProviderSettings.cs
- ViewStateModeByIdAttribute.cs
- LabelLiteral.cs
- DisplayNameAttribute.cs
- PropertyToken.cs
- XappLauncher.cs
- HMACRIPEMD160.cs
- ShaperBuffers.cs
- GPRECTF.cs
- XmlSchemaChoice.cs
- SqlXml.cs
- COM2PictureConverter.cs
- RuleElement.cs
- StructuralObject.cs
- InternalConfigRoot.cs
- XmlImplementation.cs
- DataGridViewUtilities.cs
- PolicyLevel.cs
- RepeaterItem.cs
- PerformanceCounterScope.cs
- Transactions.cs
- XmlSchemaGroup.cs
- DesignerActionGlyph.cs