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
- BoolLiteral.cs
- ProxyWebPart.cs
- ContentOperations.cs
- StringConverter.cs
- XPathNodePointer.cs
- X509Certificate2Collection.cs
- WindowsFormsHelpers.cs
- RawStylusActions.cs
- _FtpControlStream.cs
- wgx_exports.cs
- QualificationDataItem.cs
- HttpBindingExtension.cs
- DoubleStorage.cs
- Queue.cs
- ClientConvert.cs
- SqlMetaData.cs
- TemplateBindingExpression.cs
- SecurityUniqueId.cs
- BindingListCollectionView.cs
- ColorTranslator.cs
- WasHostedComPlusFactory.cs
- MemoryFailPoint.cs
- SafeBitVector32.cs
- XmlAttributeProperties.cs
- PrintDialog.cs
- CustomDictionarySources.cs
- indexingfiltermarshaler.cs
- ZoneIdentityPermission.cs
- PropertyInfoSet.cs
- TableLayoutPanelDesigner.cs
- UriTemplate.cs
- PageTextBox.cs
- OracleLob.cs
- OutputCacheModule.cs
- GradientSpreadMethodValidation.cs
- SafeNativeMethods.cs
- HostingPreferredMapPath.cs
- M3DUtil.cs
- SystemColorTracker.cs
- PostBackTrigger.cs
- FolderBrowserDialogDesigner.cs
- DesignerActionListCollection.cs
- MultiView.cs
- WebBrowserPermission.cs
- XmlEnumAttribute.cs
- FormView.cs
- PageCanvasSize.cs
- XDRSchema.cs
- BitConverter.cs
- MILUtilities.cs
- DiagnosticsConfigurationHandler.cs
- WebControlAdapter.cs
- NGCPageContentSerializerAsync.cs
- SqlDataSourceEnumerator.cs
- CryptoHandle.cs
- TripleDES.cs
- WindowsGraphics2.cs
- FileDialogCustomPlace.cs
- TimeEnumHelper.cs
- SecureUICommand.cs
- METAHEADER.cs
- FontStyle.cs
- BamlMapTable.cs
- PopupEventArgs.cs
- XamlReaderHelper.cs
- DropDownList.cs
- RtfNavigator.cs
- ParseElement.cs
- HtmlValidationSummaryAdapter.cs
- XamlBrushSerializer.cs
- ListViewGroupConverter.cs
- InvariantComparer.cs
- DrawToolTipEventArgs.cs
- WSHttpSecurity.cs
- SendMailErrorEventArgs.cs
- XmlComplianceUtil.cs
- StructuralCache.cs
- Compensation.cs
- MarkupCompilePass2.cs
- XmlSchemaSimpleType.cs
- TypeLibConverter.cs
- HttpCookie.cs
- TypeConverterMarkupExtension.cs
- WorkflowPageSetupDialog.cs
- PopupRoot.cs
- WindowsListViewItemStartMenu.cs
- AccessibilityHelperForVista.cs
- ClaimSet.cs
- BrowserCapabilitiesFactory35.cs
- ProvidersHelper.cs
- FilterableAttribute.cs
- SynchronizedMessageSource.cs
- CharAnimationUsingKeyFrames.cs
- FontWeightConverter.cs
- XPathQilFactory.cs
- DataListItemEventArgs.cs
- InkCanvasAutomationPeer.cs
- MemoryPressure.cs
- ExpressionBuilderContext.cs
- ResourceExpressionBuilder.cs