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
- HtmlAnchor.cs
- DescendantOverDescendantQuery.cs
- SimpleTableProvider.cs
- HwndProxyElementProvider.cs
- LocalIdKeyIdentifierClause.cs
- GridViewColumn.cs
- XmlSchemaCompilationSettings.cs
- FixedNode.cs
- Win32MouseDevice.cs
- AppDomainGrammarProxy.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- HttpResponseInternalWrapper.cs
- WinCategoryAttribute.cs
- OnOperation.cs
- ImageKeyConverter.cs
- HttpPostedFile.cs
- Slider.cs
- ErrorFormatterPage.cs
- ExceptionUtil.cs
- Span.cs
- LocatorPartList.cs
- FactoryGenerator.cs
- PinnedBufferMemoryStream.cs
- ToolStripDropDownButton.cs
- TreeViewBindingsEditor.cs
- ArrayListCollectionBase.cs
- MethodAccessException.cs
- Nullable.cs
- SizeAnimation.cs
- ExpressionDumper.cs
- TextOutput.cs
- SafeLibraryHandle.cs
- EntityCommandCompilationException.cs
- ElapsedEventArgs.cs
- GridSplitter.cs
- datacache.cs
- RuleRef.cs
- PlatformCulture.cs
- SqlMethodAttribute.cs
- CompilationUnit.cs
- CookieParameter.cs
- MimeReflector.cs
- OperationResponse.cs
- RadioButtonStandardAdapter.cs
- BufferedStream.cs
- MaskedTextBox.cs
- SpellCheck.cs
- WmpBitmapDecoder.cs
- DecoderNLS.cs
- ApplyImportsAction.cs
- IdentifierService.cs
- ExportException.cs
- TdsRecordBufferSetter.cs
- CriticalHandle.cs
- RankException.cs
- ObjectConverter.cs
- ParserContext.cs
- InvokeProviderWrapper.cs
- BuildDependencySet.cs
- ReadWriteObjectLock.cs
- ReadOnlyAttribute.cs
- PauseStoryboard.cs
- DependencyPropertyAttribute.cs
- BaseCollection.cs
- PasswordBox.cs
- SqlGenericUtil.cs
- UserMapPath.cs
- ExtensionDataReader.cs
- ServiceContractViewControl.cs
- TransformerConfigurationWizardBase.cs
- Collection.cs
- CapabilitiesPattern.cs
- CapabilitiesUse.cs
- QilParameter.cs
- DATA_BLOB.cs
- ApplicationSettingsBase.cs
- SerializationHelper.cs
- OracleString.cs
- ServiceControllerDesigner.cs
- SeparatorAutomationPeer.cs
- TableParaClient.cs
- TextDocumentView.cs
- PtsHelper.cs
- ValidationResult.cs
- DataDesignUtil.cs
- CodeExporter.cs
- StorageEndPropertyMapping.cs
- OpCopier.cs
- AutomationElementCollection.cs
- Polygon.cs
- Single.cs
- NetSectionGroup.cs
- ConfigurationHelpers.cs
- TdsParser.cs
- AsyncOperationManager.cs
- XmlHierarchicalEnumerable.cs
- xmlformatgeneratorstatics.cs
- XmlSchemaSet.cs
- TextBoxRenderer.cs
- PathGeometry.cs