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
- ApplicationFileParser.cs
- Package.cs
- EndPoint.cs
- Int16AnimationUsingKeyFrames.cs
- ByteArrayHelperWithString.cs
- FontSource.cs
- HttpConfigurationContext.cs
- SafeArrayRankMismatchException.cs
- SystemWebExtensionsSectionGroup.cs
- DrawingContext.cs
- IpcPort.cs
- AutomationPatternInfo.cs
- ReadOnlyCollection.cs
- SettingsProviderCollection.cs
- PromptBuilder.cs
- ProfileSettingsCollection.cs
- webproxy.cs
- SoapInteropTypes.cs
- ThousandthOfEmRealDoubles.cs
- RepeaterCommandEventArgs.cs
- DesignerDeviceConfig.cs
- OletxTransactionFormatter.cs
- CodeGenerator.cs
- InheritanceContextHelper.cs
- input.cs
- Win32KeyboardDevice.cs
- ProfileEventArgs.cs
- SqlCrossApplyToCrossJoin.cs
- GeometryGroup.cs
- SqlClientWrapperSmiStream.cs
- Padding.cs
- FtpWebResponse.cs
- MachineKeyConverter.cs
- BuildTopDownAttribute.cs
- ConfigurationErrorsException.cs
- CodeAttributeArgumentCollection.cs
- ListArgumentProvider.cs
- InheritanceRules.cs
- DbConnectionPool.cs
- SchemaImporterExtensionsSection.cs
- DropSource.cs
- CustomCategoryAttribute.cs
- ButtonChrome.cs
- EntityViewGenerationConstants.cs
- UnsafeNetInfoNativeMethods.cs
- Slider.cs
- XmlTextEncoder.cs
- QueryConverter.cs
- ImageConverter.cs
- Action.cs
- DataGridViewColumnEventArgs.cs
- FixedTextSelectionProcessor.cs
- WpfPayload.cs
- ListDictionary.cs
- NotSupportedException.cs
- AdCreatedEventArgs.cs
- CreateUserWizardStep.cs
- PathGradientBrush.cs
- SynchronizedInputProviderWrapper.cs
- Dictionary.cs
- DebuggerService.cs
- TableAutomationPeer.cs
- DisplayNameAttribute.cs
- BaseResourcesBuildProvider.cs
- IPCCacheManager.cs
- TypeSystemProvider.cs
- CodeDirectiveCollection.cs
- OracleInfoMessageEventArgs.cs
- DropSource.cs
- TemplateBindingExtension.cs
- TreeNodeMouseHoverEvent.cs
- ConfigurationSchemaErrors.cs
- XmlExtensionFunction.cs
- FileDataSourceCache.cs
- InvalidPrinterException.cs
- Subset.cs
- ApplicationManager.cs
- TextLine.cs
- OdbcConnectionOpen.cs
- UIElementParagraph.cs
- SafeViewOfFileHandle.cs
- BatchStream.cs
- SymbolMethod.cs
- InstanceNotReadyException.cs
- IPipelineRuntime.cs
- DllNotFoundException.cs
- InputLanguageSource.cs
- KeyValuePair.cs
- DBSqlParserTable.cs
- listitem.cs
- SocketPermission.cs
- VirtualizedCellInfoCollection.cs
- DefaultTextStoreTextComposition.cs
- ReaderWriterLock.cs
- ThreadStartException.cs
- SqlRowUpdatingEvent.cs
- LambdaCompiler.Generated.cs
- UseLicense.cs
- WindowsFormsLinkLabel.cs
- LogFlushAsyncResult.cs