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
- FolderBrowserDialog.cs
- MethodCallConverter.cs
- XmlSchemaSimpleContentExtension.cs
- XmlDesigner.cs
- CreateUserWizardAutoFormat.cs
- LogLogRecordHeader.cs
- UriSection.cs
- RowVisual.cs
- HttpAsyncResult.cs
- ListBox.cs
- OleDbException.cs
- WsdlServiceChannelBuilder.cs
- XmlNamespaceManager.cs
- UserPersonalizationStateInfo.cs
- IsolatedStorage.cs
- DataServiceQueryProvider.cs
- FamilyTypefaceCollection.cs
- ProfileSettings.cs
- SelectorItemAutomationPeer.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TextElementEnumerator.cs
- AsyncResult.cs
- PrimarySelectionGlyph.cs
- EncryptedType.cs
- ControlParameter.cs
- PropertyMapper.cs
- CodePropertyReferenceExpression.cs
- ToolStripPanelRenderEventArgs.cs
- DrawingCollection.cs
- controlskin.cs
- CopyNodeSetAction.cs
- SqlRowUpdatingEvent.cs
- SharedPerformanceCounter.cs
- MailHeaderInfo.cs
- ThumbButtonInfo.cs
- TypeForwardedToAttribute.cs
- LineUtil.cs
- XmlComplianceUtil.cs
- SectionVisual.cs
- KeyMatchBuilder.cs
- StringSource.cs
- RegistryDataKey.cs
- ExtensionQuery.cs
- EventBuilder.cs
- XmlSchemaProviderAttribute.cs
- DataReaderContainer.cs
- ReflectPropertyDescriptor.cs
- AnnotationComponentChooser.cs
- ContentType.cs
- BackoffTimeoutHelper.cs
- Quaternion.cs
- CellParaClient.cs
- OdbcFactory.cs
- ProfileSettingsCollection.cs
- HTTPRemotingHandler.cs
- SelectorAutomationPeer.cs
- FontSourceCollection.cs
- Listener.cs
- SchemaTableColumn.cs
- AlternateView.cs
- SerializationEventsCache.cs
- MaterialCollection.cs
- XPathNavigator.cs
- ReadingWritingEntityEventArgs.cs
- HttpCachePolicy.cs
- XmlWriterSettings.cs
- NetworkInformationException.cs
- CertificateReferenceElement.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- PageContentAsyncResult.cs
- SynchronizationHandlesCodeDomSerializer.cs
- LinkConverter.cs
- BindValidator.cs
- Connector.cs
- Maps.cs
- MasterPageCodeDomTreeGenerator.cs
- ForEachAction.cs
- WorkflowOperationFault.cs
- X509Certificate2.cs
- SHA1.cs
- GroupLabel.cs
- SafeRightsManagementHandle.cs
- AdornerDecorator.cs
- IntegrationExceptionEventArgs.cs
- ContainerVisual.cs
- BuilderElements.cs
- CanonicalFormWriter.cs
- TransferRequestHandler.cs
- SimpleLine.cs
- DbProviderFactoriesConfigurationHandler.cs
- StructuredTypeEmitter.cs
- ParseChildrenAsPropertiesAttribute.cs
- MsmqIntegrationProcessProtocolHandler.cs
- BamlLocalizableResourceKey.cs
- PositiveTimeSpanValidator.cs
- Missing.cs
- FixedSOMSemanticBox.cs
- Native.cs
- XmlSerializerNamespaces.cs
- DrawListViewColumnHeaderEventArgs.cs