Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / MS / Internal / Controls / ValidationRuleCollection.cs / 1 / 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
- PrinterSettings.cs
- FontUnitConverter.cs
- AsymmetricKeyExchangeFormatter.cs
- HttpHandlersSection.cs
- XmlIlVisitor.cs
- WindowsSecurityToken.cs
- FixedFlowMap.cs
- TrackingQueryElement.cs
- ScriptDescriptor.cs
- XamlTreeBuilder.cs
- CreateUserErrorEventArgs.cs
- ComponentConverter.cs
- ParserContext.cs
- InterleavedZipPartStream.cs
- SynchronizedPool.cs
- Figure.cs
- IssuedTokenServiceElement.cs
- StoreItemCollection.Loader.cs
- RecognizerStateChangedEventArgs.cs
- NetDataContractSerializer.cs
- arclist.cs
- DataColumnCollection.cs
- MulticastIPAddressInformationCollection.cs
- FunctionImportMapping.cs
- PathGradientBrush.cs
- DataServiceHostFactory.cs
- ArgumentFixer.cs
- DoubleIndependentAnimationStorage.cs
- DerivedKeySecurityToken.cs
- StrongNameKeyPair.cs
- EasingFunctionBase.cs
- TcpProcessProtocolHandler.cs
- DispatcherTimer.cs
- AlignmentYValidation.cs
- IndexedEnumerable.cs
- SQLMembershipProvider.cs
- XmlChildNodes.cs
- TreeViewImageIndexConverter.cs
- HotCommands.cs
- XmlUTF8TextWriter.cs
- AnnotationObservableCollection.cs
- InputBindingCollection.cs
- CompositionTarget.cs
- ProfileManager.cs
- BamlTreeUpdater.cs
- GenericQueueSurrogate.cs
- AutomationPeer.cs
- DataStreamFromComStream.cs
- ExpressionBuilder.cs
- WhitespaceRuleLookup.cs
- MultiBinding.cs
- PtsHelper.cs
- OleDbMetaDataFactory.cs
- SqlTransaction.cs
- InputLanguageProfileNotifySink.cs
- GCHandleCookieTable.cs
- ITreeGenerator.cs
- DictionaryBase.cs
- WinInet.cs
- PageSettings.cs
- WebPartEditVerb.cs
- WebBrowsableAttribute.cs
- UIElementIsland.cs
- CodeSubDirectory.cs
- COAUTHINFO.cs
- Journal.cs
- XmlSchemaInferenceException.cs
- MatrixAnimationUsingPath.cs
- XmlSchemaSimpleContentRestriction.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ConnectorMovedEventArgs.cs
- CreatingCookieEventArgs.cs
- UserControlCodeDomTreeGenerator.cs
- HtmlContainerControl.cs
- DirectoryNotFoundException.cs
- ExecutionContext.cs
- VectorCollectionConverter.cs
- Message.cs
- TransformGroup.cs
- OracleColumn.cs
- HttpPostedFile.cs
- FrameworkElement.cs
- Verify.cs
- SystemIPInterfaceProperties.cs
- DiagnosticsConfiguration.cs
- CheckBoxField.cs
- ClientProxyGenerator.cs
- Attributes.cs
- VisualBrush.cs
- TextEffectResolver.cs
- DefaultBinder.cs
- BinaryKeyIdentifierClause.cs
- Solver.cs
- EndEvent.cs
- LineMetrics.cs
- XmlSchemaExternal.cs
- _FtpDataStream.cs
- ActivityPropertyReference.cs
- SubMenuStyle.cs
- ConfigurationManagerHelperFactory.cs