Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / DataErrorValidationRule.cs / 1 / DataErrorValidationRule.cs
//---------------------------------------------------------------------------- // //// Copyright (C) by Microsoft Corporation. All rights reserved. // // // // Description: // DataErrorValidationRule is used when a ValidationError is the result of // a data error in the source item itself (e.g. as exposed by IDataErrorInfo). // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Globalization; using System.Windows.Controls; namespace System.Windows.Controls { ////// DataErrorValidationRule can be added to the ValidationRulesCollection of a Binding /// or MultiBinding to indicate that data errors in the source object should /// be considered ValidationErrors /// public sealed class DataErrorValidationRule : ValidationRule { ////// DataErrorValidationRule ctor. /// public DataErrorValidationRule() { } ////// Validate is called when Data binding is updating /// public override ValidationResult Validate(object value, CultureInfo cultureInfo) { return ValidationResult.ValidResult; } internal static readonly DataErrorValidationRule Instance = new DataErrorValidationRule(); } } // 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
- InfoCardRSAPKCS1SignatureFormatter.cs
- HtmlShim.cs
- WebScriptEnablingElement.cs
- VariableQuery.cs
- ServicePrincipalNameElement.cs
- GridViewRowPresenter.cs
- PriorityChain.cs
- RuntimeConfigurationRecord.cs
- BinaryConverter.cs
- XmlSerializerVersionAttribute.cs
- ConfigurationManagerInternal.cs
- EncryptedXml.cs
- Ray3DHitTestResult.cs
- MinimizableAttributeTypeConverter.cs
- AttachmentCollection.cs
- BoundConstants.cs
- BufferModesCollection.cs
- IssuanceLicense.cs
- KnownTypes.cs
- BaseDataBoundControl.cs
- InputLangChangeEvent.cs
- ContentPosition.cs
- RoutedPropertyChangedEventArgs.cs
- QilValidationVisitor.cs
- ReferenceEqualityComparer.cs
- AnnotationMap.cs
- ToggleButtonAutomationPeer.cs
- OleDbParameter.cs
- DataSpaceManager.cs
- ListViewAutomationPeer.cs
- CompositeControl.cs
- NeutralResourcesLanguageAttribute.cs
- CompilationRelaxations.cs
- SmtpFailedRecipientsException.cs
- TextFindEngine.cs
- PersonalizableAttribute.cs
- Compiler.cs
- ValueHandle.cs
- Int32AnimationUsingKeyFrames.cs
- CalendarButtonAutomationPeer.cs
- TreeNodeStyleCollection.cs
- NullableLongSumAggregationOperator.cs
- TextElementCollectionHelper.cs
- XamlSerializerUtil.cs
- ListenerSessionConnectionReader.cs
- FloaterBaseParaClient.cs
- ColumnCollectionEditor.cs
- HttpHandlerActionCollection.cs
- TypedServiceOperationListItem.cs
- wgx_render.cs
- XmlAttributes.cs
- ListBindableAttribute.cs
- UntypedNullExpression.cs
- WorkflowServiceBehavior.cs
- CutCopyPasteHelper.cs
- XMLUtil.cs
- RuleSettings.cs
- FillErrorEventArgs.cs
- DataControlButton.cs
- SessionParameter.cs
- BlockingCollection.cs
- DataKeyCollection.cs
- BaseParaClient.cs
- MemoryMappedView.cs
- SmtpNtlmAuthenticationModule.cs
- RoleService.cs
- LogStore.cs
- MappedMetaModel.cs
- DataSourceCache.cs
- HtmlImageAdapter.cs
- CookieProtection.cs
- MetadataCacheItem.cs
- ChangeNode.cs
- UIElementParaClient.cs
- ChannelTracker.cs
- Matrix3DConverter.cs
- XmlAutoDetectWriter.cs
- ContentTypeSettingClientMessageFormatter.cs
- NestedContainer.cs
- XmlSubtreeReader.cs
- Version.cs
- StateRuntime.cs
- SchemaLookupTable.cs
- DictionarySectionHandler.cs
- AnimationClockResource.cs
- WeakEventManager.cs
- OuterGlowBitmapEffect.cs
- TreeViewTemplateSelector.cs
- MgmtConfigurationRecord.cs
- NavigatingCancelEventArgs.cs
- SetterBaseCollection.cs
- TreeViewAutomationPeer.cs
- DataRowView.cs
- PageThemeParser.cs
- ObjectContextServiceProvider.cs
- ScrollEventArgs.cs
- LambdaExpression.cs
- Clock.cs
- MD5CryptoServiceProvider.cs
- ScriptingWebServicesSectionGroup.cs