Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / ValidationErrorEventArgs.cs / 1 / ValidationErrorEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // // // // Description: // EventArgs for ValidationError event. // // See specs at [....]/connecteddata/Specs/Validation.mht // // History: // 5/13/2004 [....]: created. // //--------------------------------------------------------------------------- using System; using System.Windows; using MS.Internal; namespace System.Windows.Controls { ///Describes if a validation error has been added or cleared /// public enum ValidationErrorEventAction { ///A new ValidationError has been detected. Added, ///An existing ValidationError has been cleared. Removed, } ////// EventArgs for ValidationError event. /// public class ValidationErrorEventArgs : RoutedEventArgs { ////// Constructor /// internal ValidationErrorEventArgs(ValidationError validationError, ValidationErrorEventAction action) { Invariant.Assert(validationError != null); RoutedEvent = Validation.ErrorEvent; _validationError = validationError; _action = action; } ////// The ValidationError that caused this ValidationErrorEvent to /// be raised. /// public ValidationError Error { get { return _validationError; } } ////// Action indicates whether the public ValidationErrorEventAction Action { get { return _action; } } ///is a new error /// or a previous error that has now been cleared. /// /// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { EventHandlerhandler = (EventHandler ) genericHandler; handler(genericTarget, this); } private ValidationError _validationError; private ValidationErrorEventAction _action; } } // 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
- DataGridViewRowDividerDoubleClickEventArgs.cs
- _UriSyntax.cs
- AccessDataSource.cs
- BrushMappingModeValidation.cs
- FileCodeGroup.cs
- StreamingContext.cs
- WebPageTraceListener.cs
- SqlRowUpdatedEvent.cs
- DataGridViewRowConverter.cs
- Tool.cs
- EncoderParameter.cs
- HttpCapabilitiesSectionHandler.cs
- StylusButtonEventArgs.cs
- WebPartHelpVerb.cs
- ValidationRule.cs
- Stylus.cs
- ServiceInstallComponent.cs
- InkCanvas.cs
- SystemColorTracker.cs
- DataGridViewAccessibleObject.cs
- Calendar.cs
- DeploymentExceptionMapper.cs
- XmlValidatingReader.cs
- TraceContext.cs
- DbModificationClause.cs
- Geometry.cs
- MenuItemStyle.cs
- SQLGuid.cs
- FacetChecker.cs
- AsymmetricSignatureDeformatter.cs
- MessageFormatterConverter.cs
- GridEntryCollection.cs
- ThreadSafeList.cs
- ServiceInfo.cs
- ActiveXContainer.cs
- ConfigurationManagerHelperFactory.cs
- RelOps.cs
- NominalTypeEliminator.cs
- PropertyChangingEventArgs.cs
- TriggerAction.cs
- RichTextBoxContextMenu.cs
- Identifier.cs
- XmlSchemaFacet.cs
- ToolboxItemAttribute.cs
- SynchronizedInputPattern.cs
- EntryPointNotFoundException.cs
- FontConverter.cs
- InplaceBitmapMetadataWriter.cs
- ChangeDirector.cs
- WebBrowsableAttribute.cs
- CodeTypeMemberCollection.cs
- FormatConvertedBitmap.cs
- InvalidAsynchronousStateException.cs
- brushes.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- BindingRestrictions.cs
- BridgeDataReader.cs
- AttachedAnnotationChangedEventArgs.cs
- NavigationService.cs
- RepeaterCommandEventArgs.cs
- Font.cs
- AmbientValueAttribute.cs
- QilXmlWriter.cs
- WebEncodingValidator.cs
- AutomationFocusChangedEventArgs.cs
- TableProviderWrapper.cs
- hwndwrapper.cs
- ClientApiGenerator.cs
- DrawingContext.cs
- Vector3DIndependentAnimationStorage.cs
- DoubleCollectionConverter.cs
- CookielessHelper.cs
- SQLDecimalStorage.cs
- XmlHierarchyData.cs
- xdrvalidator.cs
- QuaternionAnimationUsingKeyFrames.cs
- WindowsUpDown.cs
- CallTemplateAction.cs
- DesignerVerbCollection.cs
- SpecialNameAttribute.cs
- Converter.cs
- SystemInfo.cs
- SafeEventHandle.cs
- DesignerDataView.cs
- AsyncPostBackTrigger.cs
- DataControlPagerLinkButton.cs
- PerformanceCounterScope.cs
- SystemWebSectionGroup.cs
- httpserverutility.cs
- OleDbCommand.cs
- ConfigurationManagerHelper.cs
- UserMapPath.cs
- DataRelationPropertyDescriptor.cs
- RadioButton.cs
- ArcSegment.cs
- BitmapFrame.cs
- CommandDesigner.cs
- DragDrop.cs
- ZipIOExtraFieldZip64Element.cs
- XmlReflectionMember.cs