Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / SetterBaseCollection.cs / 1305600 / SetterBaseCollection.cs
/****************************************************************************\ * * File: SetterBaseCollection.cs * * A collection of SetterBase-derived classes. See use in Style.cs and other * places. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Collections.ObjectModel; // Collectionusing System.Diagnostics; // Debug.Assert using System.Windows.Data; // Binding knowledge using System.Windows.Media; // Visual knowledge using System.Windows.Markup; // MarkupExtension namespace System.Windows { /// /// A collection of SetterBase objects to be used /// in Template and its trigger classes /// public sealed class SetterBaseCollection : Collection{ #region ProtectedMethods /// /// ClearItems override /// protected override void ClearItems() { CheckSealed(); base.ClearItems(); } ////// InsertItem override /// protected override void InsertItem(int index, SetterBase item) { CheckSealed(); SetterBaseValidation(item); base.InsertItem(index, item); } ////// RemoveItem override /// protected override void RemoveItem(int index) { CheckSealed(); base.RemoveItem(index); } ////// SetItem override /// protected override void SetItem(int index, SetterBase item) { CheckSealed(); SetterBaseValidation(item); base.SetItem(index, item); } #endregion ProtectedMethods #region PublicMethods ////// Returns the sealed state of this object. If true, any attempt /// at modifying the state of this object will trigger an exception. /// public bool IsSealed { get { return _sealed; } } #endregion PublicMethods #region InternalMethods internal void Seal() { _sealed = true; // Seal all the setters for (int i=0; i
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientSettingsSection.cs
- DesignerVerb.cs
- GlyphRunDrawing.cs
- LayoutDump.cs
- CheckBoxPopupAdapter.cs
- fixedPageContentExtractor.cs
- WsdlImporter.cs
- LayoutExceptionEventArgs.cs
- PropertyGroupDescription.cs
- LineUtil.cs
- SystemKeyConverter.cs
- FixedPage.cs
- WebHttpEndpoint.cs
- InfoCardTraceRecord.cs
- XmlQueryContext.cs
- MethodToken.cs
- CacheOutputQuery.cs
- ArraySegment.cs
- BypassElement.cs
- StatusBarPanelClickEvent.cs
- IndexedSelectQueryOperator.cs
- LoginAutoFormat.cs
- XmlSchemaObjectTable.cs
- COAUTHIDENTITY.cs
- PrintingPermission.cs
- Codec.cs
- WriteableOnDemandPackagePart.cs
- SessionEndingEventArgs.cs
- Effect.cs
- MessageQueuePermission.cs
- BinaryFormatterWriter.cs
- QuaternionKeyFrameCollection.cs
- KeyFrames.cs
- backend.cs
- ParsedAttributeCollection.cs
- GcHandle.cs
- RSAPKCS1KeyExchangeFormatter.cs
- Effect.cs
- JumpList.cs
- XmlSequenceWriter.cs
- TrackingAnnotationCollection.cs
- MetadataStore.cs
- Msec.cs
- TcpClientChannel.cs
- UnsafeNativeMethods.cs
- SmtpReplyReader.cs
- XsltConvert.cs
- Vector3DConverter.cs
- ScriptServiceAttribute.cs
- DecimalConstantAttribute.cs
- WorkflowDispatchContext.cs
- ObjRef.cs
- KeyConverter.cs
- WbemProvider.cs
- WebPartEventArgs.cs
- Knowncolors.cs
- HttpFileCollection.cs
- PresentationAppDomainManager.cs
- DataGridViewRowConverter.cs
- NetworkInformationPermission.cs
- HttpCachePolicy.cs
- ConfigurationElement.cs
- _SslStream.cs
- ConfigurationProperty.cs
- FontFamilyConverter.cs
- ResourceContainer.cs
- BitmapDownload.cs
- DescriptionAttribute.cs
- GB18030Encoding.cs
- CatalogZoneDesigner.cs
- TextModifier.cs
- Pens.cs
- VectorConverter.cs
- PageSetupDialog.cs
- DataTemplate.cs
- WebServiceReceiveDesigner.cs
- WebRequestModuleElementCollection.cs
- HttpDictionary.cs
- MappingMetadataHelper.cs
- CustomValidator.cs
- XmlEncoding.cs
- UnsafeNativeMethods.cs
- X509Utils.cs
- ReadWriteObjectLock.cs
- Matrix3DStack.cs
- SRGSCompiler.cs
- FilteredXmlReader.cs
- Tuple.cs
- SqlUnionizer.cs
- TreeNodeCollection.cs
- RuntimeUtils.cs
- ComAdminWrapper.cs
- metadatamappinghashervisitor.cs
- DataListDesigner.cs
- ConnectionsZone.cs
- ProjectionPathSegment.cs
- WebSysDefaultValueAttribute.cs
- ToggleButtonAutomationPeer.cs
- RegexInterpreter.cs
- VideoDrawing.cs