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
- Column.cs
- DrawListViewSubItemEventArgs.cs
- StreamAsIStream.cs
- FormsAuthenticationUserCollection.cs
- DataGridViewCellStyleBuilderDialog.cs
- ExpanderAutomationPeer.cs
- DelayedRegex.cs
- SplineKeyFrames.cs
- UpdatePanelTriggerCollection.cs
- SpoolingTaskBase.cs
- WebPartZone.cs
- SimpleFieldTemplateUserControl.cs
- GatewayIPAddressInformationCollection.cs
- TextSelection.cs
- CoTaskMemHandle.cs
- RuleSettings.cs
- HtmlElementErrorEventArgs.cs
- SymbolEqualComparer.cs
- counter.cs
- ClipboardData.cs
- DefaultProfileManager.cs
- SafeHandles.cs
- MergablePropertyAttribute.cs
- FixedPageProcessor.cs
- OracleDateTime.cs
- HMACRIPEMD160.cs
- Trace.cs
- XmlWrappingReader.cs
- HttpHandlersSection.cs
- OleDbParameter.cs
- EntityType.cs
- HttpProcessUtility.cs
- LOSFormatter.cs
- XhtmlMobileTextWriter.cs
- EditCommandColumn.cs
- SyntaxCheck.cs
- MenuScrollingVisibilityConverter.cs
- SQLGuid.cs
- RuleSettingsCollection.cs
- Drawing.cs
- FileSystemWatcher.cs
- MailMessageEventArgs.cs
- ICspAsymmetricAlgorithm.cs
- HttpHandlerAction.cs
- FixedSOMLineRanges.cs
- ObjectAnimationUsingKeyFrames.cs
- RefreshEventArgs.cs
- TreeNodeStyle.cs
- CodeTryCatchFinallyStatement.cs
- FormsAuthenticationTicket.cs
- Persist.cs
- ListParaClient.cs
- FrameSecurityDescriptor.cs
- Converter.cs
- DeferredTextReference.cs
- WebPartConnectionsConfigureVerb.cs
- WindowsClientElement.cs
- InsufficientMemoryException.cs
- InputBinding.cs
- BStrWrapper.cs
- ToolStripDropDownDesigner.cs
- MaterialCollection.cs
- DrawingGroup.cs
- JapaneseCalendar.cs
- recordstatefactory.cs
- AQNBuilder.cs
- RoutedCommand.cs
- ClientSettingsStore.cs
- NamespaceQuery.cs
- HttpCookieCollection.cs
- SoapAttributeOverrides.cs
- Quad.cs
- URLString.cs
- GregorianCalendar.cs
- ServiceObjectContainer.cs
- Util.cs
- MenuItemBinding.cs
- Misc.cs
- WindowsAltTab.cs
- ImageListImage.cs
- UrlAuthFailedErrorFormatter.cs
- ProfilePropertySettings.cs
- PropertyFilter.cs
- XPathDescendantIterator.cs
- QueryStringParameter.cs
- WebEventCodes.cs
- MimeMultiPart.cs
- ComplexObject.cs
- CustomDictionarySources.cs
- SqlCommandSet.cs
- KeyValuePairs.cs
- ITextView.cs
- FixedBufferAttribute.cs
- ObjectPropertyMapping.cs
- MimeReflector.cs
- UnsafeCollabNativeMethods.cs
- TextTreeUndo.cs
- NotCondition.cs
- ClientFormsIdentity.cs
- TextServicesProperty.cs