Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / Controls / ValidationRuleCollection.cs / 1305600 / ValidationRuleCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // // // // Description: // ValidationRulesCollection is a collection of ValidationRule // instances on either a Binding or a MultiBinding. Each of the rules // is checked for validity on update // // See specs at http://avalon/connecteddata/Specs/Validation.mht // // History: // 5/3/2004 mharper: created. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Controls; namespace MS.Internal.Controls { ////// ValidationRulesCollection is a collection of ValidationRule /// instances on either a Binding or a MultiBinding. Each of the rules /// is checked for validity on update /// internal class ValidationRuleCollection : Collection{ //----------------------------------------------------- // // Protected Methods // //----------------------------------------------------- #region Protected Methods /// /// 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, ValidationRule item) { if (item == null) throw new ArgumentNullException("item"); base.InsertItem(index, item); } ////// called by base class Collection<T> when an item is added to list; /// raises a CollectionChanged event to any listeners /// protected override void SetItem(int index, ValidationRule item) { if (item == null) throw new ArgumentNullException("item"); base.SetItem(index, item); } #endregion Protected Methods } } // 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
- SolidBrush.cs
- TraceSection.cs
- DataBoundControlParameterTarget.cs
- ClientSettingsStore.cs
- ContainerParaClient.cs
- TextRenderer.cs
- Compiler.cs
- EnvelopedPkcs7.cs
- HtmlHistory.cs
- XmlSignatureManifest.cs
- RunInstallerAttribute.cs
- ControlPropertyNameConverter.cs
- SignatureDescription.cs
- ErrorWrapper.cs
- ListControlConvertEventArgs.cs
- DataException.cs
- ExternalFile.cs
- XmlMtomReader.cs
- GridViewItemAutomationPeer.cs
- XslUrlEditor.cs
- FamilyMap.cs
- QuaternionRotation3D.cs
- QilTernary.cs
- EntityTypeEmitter.cs
- Expr.cs
- LinqDataSourceView.cs
- XmlSchemaAttribute.cs
- BorderGapMaskConverter.cs
- SymDocumentType.cs
- PostBackOptions.cs
- PlacementWorkspace.cs
- PropertyStore.cs
- ScrollViewerAutomationPeer.cs
- rsa.cs
- MarkupExtensionReturnTypeAttribute.cs
- Substitution.cs
- SingleAnimationBase.cs
- RadioButton.cs
- RowToParametersTransformer.cs
- HandlerWithFactory.cs
- ActiveXMessageFormatter.cs
- SqlPersonalizationProvider.cs
- CircleHotSpot.cs
- ResourcesChangeInfo.cs
- CssStyleCollection.cs
- DataServiceQuery.cs
- GenericIdentity.cs
- TypeReference.cs
- EventOpcode.cs
- XslCompiledTransform.cs
- CapabilitiesRule.cs
- XXXInfos.cs
- LinearKeyFrames.cs
- ProcessStartInfo.cs
- XslAst.cs
- CodeTypeParameter.cs
- DataGridViewIntLinkedList.cs
- WebBrowserHelper.cs
- TextBlock.cs
- ConfigsHelper.cs
- Calendar.cs
- AddIn.cs
- SortExpressionBuilder.cs
- CreateUserWizard.cs
- LabelLiteral.cs
- Util.cs
- Visual3D.cs
- SiteMapNodeItem.cs
- LogArchiveSnapshot.cs
- Serializer.cs
- BinHexDecoder.cs
- ConditionalDesigner.cs
- AssemblyGen.cs
- CodeGotoStatement.cs
- BaseCollection.cs
- InputProviderSite.cs
- CategoryGridEntry.cs
- TransactionsSectionGroup.cs
- LocalServiceSecuritySettingsElement.cs
- ConstraintEnumerator.cs
- HashSetEqualityComparer.cs
- Tile.cs
- HostedHttpTransportManager.cs
- RegexStringValidator.cs
- AspNetSynchronizationContext.cs
- ProxyElement.cs
- _FixedSizeReader.cs
- BStrWrapper.cs
- ServiceOperationHelpers.cs
- DataGridCommandEventArgs.cs
- SerializationInfoEnumerator.cs
- AnnotationHelper.cs
- Stack.cs
- WebServiceErrorEvent.cs
- WebControlAdapter.cs
- NonVisualControlAttribute.cs
- HMACSHA512.cs
- RegexBoyerMoore.cs
- SafeFileMappingHandle.cs
- Parser.cs