Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / ExceptionValidationRule.cs / 2 / ExceptionValidationRule.cs
//---------------------------------------------------------------------------- // //// Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // // // // Description: // ExceptionValidationRule is used when a ValidationError is the result of an Exception as // there is no actual ValidationRule. // // // See specs at [....]/connecteddata/M5%20Specs/Validation.mht // // History: // 1/12/2005 [....]: created. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Globalization; using System.Windows.Controls; namespace System.Windows.Controls { ////// ExceptionValidationRule can be added to the ValidationRulesCollection of a Binding /// or MultiBinding to indicate that Exceptions that occur during UpdateSource should /// be considered ValidationErrors /// public sealed class ExceptionValidationRule : ValidationRule { ////// ExceptionValidationRule ctor. /// public ExceptionValidationRule() { } ////// Validate is called when Data binding is updating /// public override ValidationResult Validate(object value, CultureInfo cultureInfo) { return ValidationResult.ValidResult; } internal static readonly ExceptionValidationRule Instance = new ExceptionValidationRule(); } } // 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
- KeyProperty.cs
- Set.cs
- _ShellExpression.cs
- TextWriterEngine.cs
- TargetControlTypeAttribute.cs
- ConstraintCollection.cs
- FileRecordSequenceCompletedAsyncResult.cs
- SrgsSemanticInterpretationTag.cs
- SevenBitStream.cs
- Vector3D.cs
- BooleanExpr.cs
- BackgroundWorker.cs
- InteropBitmapSource.cs
- CodeCastExpression.cs
- PersistChildrenAttribute.cs
- AnnotationHighlightLayer.cs
- SafeNativeMethodsMilCoreApi.cs
- SingleObjectCollection.cs
- TableLayoutStyleCollection.cs
- ProtocolsConfiguration.cs
- DesigntimeLicenseContextSerializer.cs
- NamespaceCollection.cs
- sqlmetadatafactory.cs
- Inline.cs
- assemblycache.cs
- CustomAttributeBuilder.cs
- ExpressionBuilder.cs
- TypeReference.cs
- RoutedEventArgs.cs
- FrameworkContentElementAutomationPeer.cs
- NavigationExpr.cs
- ClaimComparer.cs
- __FastResourceComparer.cs
- CodeDelegateInvokeExpression.cs
- FontCacheUtil.cs
- LambdaCompiler.Generated.cs
- XPathBinder.cs
- TransformGroup.cs
- PrefixQName.cs
- XmlSchemaInfo.cs
- WinFormsUtils.cs
- UserControlFileEditor.cs
- SessionEndingEventArgs.cs
- AuthenticationServiceManager.cs
- RequestQueryParser.cs
- QueryPrefixOp.cs
- ValidatingReaderNodeData.cs
- LinqDataSourceInsertEventArgs.cs
- CfgParser.cs
- TransformerConfigurationWizardBase.cs
- XmlStreamNodeWriter.cs
- Message.cs
- AuthStoreRoleProvider.cs
- FromReply.cs
- WrapperEqualityComparer.cs
- XslAst.cs
- SiteMapPathDesigner.cs
- UserCancellationException.cs
- CompositeActivityTypeDescriptorProvider.cs
- HTMLTagNameToTypeMapper.cs
- TreeNodeStyleCollection.cs
- DataObject.cs
- RuleSettings.cs
- TextServicesHost.cs
- XPathDocumentBuilder.cs
- XmlSchemaAnnotated.cs
- MergeLocalizationDirectives.cs
- XmlDeclaration.cs
- SafeHandles.cs
- CaseInsensitiveComparer.cs
- unsafenativemethodsother.cs
- FixedSOMPageConstructor.cs
- ServiceTimeoutsBehavior.cs
- HyperLink.cs
- XmlElementAttributes.cs
- ArcSegment.cs
- ImportCatalogPart.cs
- SystemPens.cs
- Point4DConverter.cs
- GenericPrincipal.cs
- MultiDataTrigger.cs
- UrlParameterWriter.cs
- XpsThumbnail.cs
- EarlyBoundInfo.cs
- VideoDrawing.cs
- HttpListenerTimeoutManager.cs
- Event.cs
- RequestResizeEvent.cs
- TextRangeEditTables.cs
- SecurityStateEncoder.cs
- MatrixStack.cs
- CallId.cs
- SplitterCancelEvent.cs
- HyperlinkAutomationPeer.cs
- GlyphTypeface.cs
- ExceptionList.cs
- OleDbWrapper.cs
- DebugManager.cs
- FontCacheUtil.cs
- HttpWriter.cs