Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / MS / Internal / Controls / ValidationRuleCollection.cs / 1 / 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
- CharAnimationBase.cs
- TextLineBreak.cs
- CornerRadiusConverter.cs
- ResourceSet.cs
- CaseInsensitiveComparer.cs
- XPathEmptyIterator.cs
- ConfigurationStrings.cs
- DesignerDataParameter.cs
- AnimatedTypeHelpers.cs
- TabControl.cs
- HtmlTableRow.cs
- DocumentOrderQuery.cs
- TextRangeProviderWrapper.cs
- SortedList.cs
- EdmComplexTypeAttribute.cs
- DNS.cs
- DirectoryObjectSecurity.cs
- loginstatus.cs
- BCryptHashAlgorithm.cs
- EarlyBoundInfo.cs
- DictionaryContent.cs
- FileDialogCustomPlace.cs
- MimeFormatExtensions.cs
- QueryGenerator.cs
- MainMenu.cs
- CacheModeConverter.cs
- RelationshipManager.cs
- DebuggerAttributes.cs
- UpdateCompiler.cs
- SoapCodeExporter.cs
- Transform3DGroup.cs
- RijndaelManagedTransform.cs
- BindingGraph.cs
- DuplicateDetector.cs
- WebPageTraceListener.cs
- PrePostDescendentsWalker.cs
- WindowsRegion.cs
- HttpRequestContext.cs
- SqlWriter.cs
- PointLightBase.cs
- PropertyValueChangedEvent.cs
- OdbcError.cs
- WebPartDisplayModeCancelEventArgs.cs
- SurrogateChar.cs
- TreeNodeBindingDepthConverter.cs
- TreeViewAutomationPeer.cs
- MediaElementAutomationPeer.cs
- ReflectionUtil.cs
- AnimatedTypeHelpers.cs
- CustomErrorsSection.cs
- BrowserCapabilitiesFactoryBase.cs
- DateTimeFormat.cs
- ForwardPositionQuery.cs
- CommandLibraryHelper.cs
- ServiceModelSecurityTokenTypes.cs
- WindowsStatic.cs
- base64Transforms.cs
- CompressStream.cs
- ContextMenuStripGroup.cs
- ListenerPerfCounters.cs
- XmlHelper.cs
- safelinkcollection.cs
- DesignerActionTextItem.cs
- DbProviderFactoriesConfigurationHandler.cs
- DesignerExtenders.cs
- OrCondition.cs
- ModelEditingScope.cs
- EventMappingSettingsCollection.cs
- BatchServiceHost.cs
- RelationshipEnd.cs
- ActionFrame.cs
- ErrorTableItemStyle.cs
- FlowDocumentView.cs
- COM2EnumConverter.cs
- ScopedKnownTypes.cs
- AutomationTextAttribute.cs
- PartialTrustHelpers.cs
- ListViewTableCell.cs
- PopOutPanel.cs
- SqlDataSourceConfigureFilterForm.cs
- ManipulationInertiaStartingEventArgs.cs
- Wildcard.cs
- categoryentry.cs
- ZipArchive.cs
- ISAPIApplicationHost.cs
- BamlReader.cs
- LazyTextWriterCreator.cs
- SelectionRangeConverter.cs
- SchemaExporter.cs
- XMLSyntaxException.cs
- RootBrowserWindowProxy.cs
- FindCriteriaElement.cs
- XmlDictionaryWriter.cs
- AddInDeploymentState.cs
- XAMLParseException.cs
- BuildProviderInstallComponent.cs
- ToolStripOverflow.cs
- ManipulationCompletedEventArgs.cs
- XmlWellformedWriter.cs
- CodeSubDirectoriesCollection.cs