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
- EmbossBitmapEffect.cs
- MessageAction.cs
- CompModSwitches.cs
- LazyInitializer.cs
- UIElementPropertyUndoUnit.cs
- Int16Converter.cs
- ExceptionUtil.cs
- CodeObjectCreateExpression.cs
- ServiceNotStartedException.cs
- ObjectConverter.cs
- DataObjectPastingEventArgs.cs
- ColumnTypeConverter.cs
- TabItemWrapperAutomationPeer.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- TraceContextRecord.cs
- SqlCachedBuffer.cs
- ModuleElement.cs
- PhoneCall.cs
- XmlArrayItemAttribute.cs
- SafeCoTaskMem.cs
- BindingValueChangedEventArgs.cs
- RangeBaseAutomationPeer.cs
- newinstructionaction.cs
- AutomationIdentifierGuids.cs
- UnmanagedMemoryAccessor.cs
- GridItemProviderWrapper.cs
- UserNameSecurityToken.cs
- SchemaCollectionPreprocessor.cs
- VariableValue.cs
- HitTestDrawingContextWalker.cs
- login.cs
- sqlcontext.cs
- ButtonFlatAdapter.cs
- ADMembershipUser.cs
- LongAverageAggregationOperator.cs
- ConnectionManagementElementCollection.cs
- ToolboxItem.cs
- Quad.cs
- EmbeddedMailObjectsCollection.cs
- OutputCacheSection.cs
- FontStyles.cs
- ManagementScope.cs
- ConfigurationManagerInternalFactory.cs
- FontSource.cs
- StylusButton.cs
- DataGridViewDataErrorEventArgs.cs
- ExpressionCopier.cs
- oledbmetadatacolumnnames.cs
- FileDialogPermission.cs
- ExpandoClass.cs
- EdgeModeValidation.cs
- CompilerHelpers.cs
- RadioButtonFlatAdapter.cs
- ConnectionProviderAttribute.cs
- SelectingProviderEventArgs.cs
- TransformProviderWrapper.cs
- Menu.cs
- PropertySet.cs
- CalendarButton.cs
- HttpCookiesSection.cs
- RectangleConverter.cs
- COM2ComponentEditor.cs
- OutputCacheModule.cs
- KoreanLunisolarCalendar.cs
- IntellisenseTextBox.cs
- MLangCodePageEncoding.cs
- RequestCachingSection.cs
- KnownTypes.cs
- DirectoryInfo.cs
- KerberosSecurityTokenParameters.cs
- SqlConnectionManager.cs
- TraceUtils.cs
- GenericUriParser.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- Barrier.cs
- XmlValidatingReader.cs
- TextFormatterImp.cs
- SQLInt32.cs
- ToolStripItem.cs
- TemplateControl.cs
- ListDataHelper.cs
- ProtocolViolationException.cs
- ConnectionManagementElement.cs
- SortedDictionary.cs
- TypeBrowser.xaml.cs
- SqlFactory.cs
- SqlAliasesReferenced.cs
- FillRuleValidation.cs
- JournalEntryListConverter.cs
- QilValidationVisitor.cs
- Model3DGroup.cs
- DriveNotFoundException.cs
- XmlWellformedWriter.cs
- BindingWorker.cs
- ComboBox.cs
- VisualCollection.cs
- BackStopAuthenticationModule.cs
- ClusterSafeNativeMethods.cs
- XmlImplementation.cs
- FilterException.cs