Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- SiteMapNodeItemEventArgs.cs
- XmlAutoDetectWriter.cs
- ColorPalette.cs
- OrderingInfo.cs
- PackageStore.cs
- DBCommandBuilder.cs
- Win32Interop.cs
- TabItem.cs
- WebPartAuthorizationEventArgs.cs
- FontEmbeddingManager.cs
- MultiDataTrigger.cs
- CustomCategoryAttribute.cs
- Oid.cs
- ScriptRef.cs
- BitmapEffectrendercontext.cs
- DataGridViewSelectedCellCollection.cs
- FontEmbeddingManager.cs
- FontStyleConverter.cs
- InputProcessorProfiles.cs
- DistributedTransactionPermission.cs
- FixedSOMContainer.cs
- WebPartEditVerb.cs
- WebPartVerbCollection.cs
- UnsettableComboBox.cs
- PlanCompiler.cs
- EventData.cs
- NumericUpDownAcceleration.cs
- SQLDateTime.cs
- PerspectiveCamera.cs
- SimpleApplicationHost.cs
- SafeHandles.cs
- SqlCommand.cs
- AspCompat.cs
- Geometry.cs
- KeySpline.cs
- FontWeights.cs
- StringOutput.cs
- DataControlLinkButton.cs
- RecognitionResult.cs
- MatrixAnimationBase.cs
- AssociationSetMetadata.cs
- LinqTreeNodeEvaluator.cs
- DecoderReplacementFallback.cs
- EdmError.cs
- MenuRenderer.cs
- DocumentGrid.cs
- FontClient.cs
- IIS7UserPrincipal.cs
- EventRouteFactory.cs
- RequestTimeoutManager.cs
- BackStopAuthenticationModule.cs
- CssClassPropertyAttribute.cs
- DeadCharTextComposition.cs
- ClientSettingsSection.cs
- XPathDocumentIterator.cs
- ReachDocumentReferenceSerializerAsync.cs
- HashRepartitionStream.cs
- ParameterCollection.cs
- AnnotationAuthorChangedEventArgs.cs
- Activity.cs
- DesignerActionTextItem.cs
- ParseElementCollection.cs
- WebPartConnectionsCancelEventArgs.cs
- DataGridState.cs
- UseManagedPresentationBindingElementImporter.cs
- COM2IPerPropertyBrowsingHandler.cs
- DocumentApplication.cs
- XmlElementAttributes.cs
- HealthMonitoringSection.cs
- DrawTreeNodeEventArgs.cs
- SettingsSavedEventArgs.cs
- ReadOnlyPropertyMetadata.cs
- Set.cs
- BatchStream.cs
- TemplatedMailWebEventProvider.cs
- AutomationAttributeInfo.cs
- CompilerCollection.cs
- SQLMembershipProvider.cs
- AppDomainProtocolHandler.cs
- MultipartContentParser.cs
- DependencyPropertyKind.cs
- Privilege.cs
- PropertyPushdownHelper.cs
- HtmlTableRowCollection.cs
- typedescriptorpermission.cs
- SqlBooleanizer.cs
- EnumerableCollectionView.cs
- ImageAnimator.cs
- Imaging.cs
- XmlAnyAttributeAttribute.cs
- SqlDelegatedTransaction.cs
- UnsafeNativeMethods.cs
- SoapAttributeAttribute.cs
- ImageAttributes.cs
- Utils.cs
- TypeConstant.cs
- WindowsFormsHostAutomationPeer.cs
- UpdateCompiler.cs
- Underline.cs
- ComponentResourceKeyConverter.cs