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
- UnsafeNetInfoNativeMethods.cs
- RemoveStoryboard.cs
- ResourceDictionary.cs
- CodeGen.cs
- CacheChildrenQuery.cs
- CheckBox.cs
- SecurityStateEncoder.cs
- DocumentsTrace.cs
- TextEditorMouse.cs
- XmlRootAttribute.cs
- RoutedUICommand.cs
- XmlAttributeOverrides.cs
- DocumentPage.cs
- AssertSection.cs
- PrinterUnitConvert.cs
- BitmapEffectGroup.cs
- TagMapInfo.cs
- Context.cs
- ArrayConverter.cs
- IndexedString.cs
- CheckBoxStandardAdapter.cs
- SerializationUtilities.cs
- LambdaCompiler.Statements.cs
- XmlTextReaderImplHelpers.cs
- SoapExtension.cs
- ColumnCollection.cs
- Floater.cs
- GradientStopCollection.cs
- DateTimeConverter.cs
- ProxyWebPartManager.cs
- XmlSortKey.cs
- Image.cs
- Point3DCollectionConverter.cs
- TypedTableBaseExtensions.cs
- StringUtil.cs
- PageHandlerFactory.cs
- MsmqProcessProtocolHandler.cs
- PersistencePipeline.cs
- CornerRadius.cs
- Rect3DValueSerializer.cs
- XmlDataLoader.cs
- Color.cs
- DefaultProxySection.cs
- FlowDocumentReaderAutomationPeer.cs
- ClickablePoint.cs
- ACE.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- CalendarDay.cs
- SessionStateContainer.cs
- WebBrowserNavigatedEventHandler.cs
- DotExpr.cs
- _TransmitFileOverlappedAsyncResult.cs
- DefaultSection.cs
- BaseDataListActionList.cs
- BaseTreeIterator.cs
- UdpTransportSettings.cs
- CallId.cs
- ResourceCategoryAttribute.cs
- SoapSchemaImporter.cs
- AtomMaterializer.cs
- EffectiveValueEntry.cs
- HwndHostAutomationPeer.cs
- PatternMatcher.cs
- PreDigestedSignedInfo.cs
- Wizard.cs
- OneOfConst.cs
- PropertyTab.cs
- JavaScriptObjectDeserializer.cs
- WebPartDeleteVerb.cs
- StrongTypingException.cs
- CodeCatchClause.cs
- PerformanceCountersElement.cs
- RadialGradientBrush.cs
- ModelVisual3D.cs
- XPathException.cs
- WriteableBitmap.cs
- ContractHandle.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ResXResourceReader.cs
- XsltContext.cs
- AdPostCacheSubstitution.cs
- Tablet.cs
- StringValueConverter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- PtsHost.cs
- UniqueConstraint.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SecurityDocument.cs
- DoubleAnimation.cs
- RuntimeConfig.cs
- CodeParameterDeclarationExpression.cs
- DataTableClearEvent.cs
- EventItfInfo.cs
- RemotingConfiguration.cs
- ServerIdentity.cs
- URI.cs
- Activity.cs
- TraceHandlerErrorFormatter.cs
- Page.cs
- TypeResolver.cs