Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / ValidationErrorEventArgs.cs / 1305600 / ValidationErrorEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // // // // Description: // EventArgs for ValidationError event. // // See specs at http://avalon/connecteddata/Specs/Validation.mht // // History: // 5/13/2004 mharper: 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
- BitmapEffect.cs
- RecognizerBase.cs
- ClientFormsAuthenticationMembershipProvider.cs
- Rotation3DAnimationBase.cs
- XmlSchemaNotation.cs
- DateBoldEvent.cs
- ProfilePropertyMetadata.cs
- PrivilegedConfigurationManager.cs
- SyntaxCheck.cs
- DependencyProperty.cs
- WorkflowViewStateService.cs
- _TransmitFileOverlappedAsyncResult.cs
- SSmlParser.cs
- Math.cs
- WebServiceParameterData.cs
- PartialTrustHelpers.cs
- WpfKnownTypeInvoker.cs
- MultiDataTrigger.cs
- TrackingRecord.cs
- JournalEntryListConverter.cs
- CompiledRegexRunnerFactory.cs
- HScrollBar.cs
- DataGridViewRowsRemovedEventArgs.cs
- TypefaceCollection.cs
- GenericTypeParameterBuilder.cs
- GenericUriParser.cs
- AutoResizedEvent.cs
- PaginationProgressEventArgs.cs
- StringComparer.cs
- AggregateNode.cs
- AdRotator.cs
- control.ime.cs
- DetailsViewCommandEventArgs.cs
- ReversePositionQuery.cs
- RemoteAsymmetricSignatureFormatter.cs
- ClientSponsor.cs
- SearchForVirtualItemEventArgs.cs
- BinaryReader.cs
- LoginUtil.cs
- Operator.cs
- SchemaCollectionCompiler.cs
- SoapExtensionImporter.cs
- ADConnectionHelper.cs
- Byte.cs
- EventInfo.cs
- ZipIOExtraField.cs
- ParameterToken.cs
- SiteMapPath.cs
- ClientApiGenerator.cs
- ResourceManager.cs
- ConstructorExpr.cs
- FrugalMap.cs
- FormClosedEvent.cs
- infer.cs
- MessageDecoder.cs
- CultureInfo.cs
- BoundPropertyEntry.cs
- FilterEventArgs.cs
- DiagnosticsConfiguration.cs
- PeerNameRecordCollection.cs
- EntityContainerEntitySetDefiningQuery.cs
- ServiceDesigner.xaml.cs
- MessageSecurityOverTcpElement.cs
- ArrayElementGridEntry.cs
- MimeMapping.cs
- GPRECT.cs
- Msec.cs
- XmlStringTable.cs
- XmlHelper.cs
- TransformerTypeCollection.cs
- BaseProcessor.cs
- IISUnsafeMethods.cs
- FontInfo.cs
- NavigatorOutput.cs
- JsonWriter.cs
- VerticalAlignConverter.cs
- TextBox.cs
- DataTransferEventArgs.cs
- SqlDataSourceConfigureFilterForm.cs
- ReceiveCompletedEventArgs.cs
- ProfileGroupSettings.cs
- ItemsPresenter.cs
- TextSerializer.cs
- EntityDesignerUtils.cs
- InternalBase.cs
- ParallelLoopState.cs
- TokenBasedSet.cs
- TransformedBitmap.cs
- LogLogRecord.cs
- SecurityPolicySection.cs
- XmlTextReader.cs
- ObjectItemCollection.cs
- ToolStripItemGlyph.cs
- DragDropManager.cs
- UniqueID.cs
- HttpProcessUtility.cs
- AttributeEmitter.cs
- CloseCollectionAsyncResult.cs
- ContentDesigner.cs
- MergeFilterQuery.cs