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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SystemInfo.cs
- ImagingCache.cs
- TypeConverterAttribute.cs
- NavigationProperty.cs
- HostExecutionContextManager.cs
- HttpHandler.cs
- ListViewTableRow.cs
- WindowClosedEventArgs.cs
- InstanceKey.cs
- MSAAEventDispatcher.cs
- DllNotFoundException.cs
- GeneralTransform3DTo2D.cs
- SecuritySessionFilter.cs
- ServicePointManager.cs
- SessionStateModule.cs
- DashStyles.cs
- XmlUTF8TextReader.cs
- ImageFormat.cs
- ToolBarButtonClickEvent.cs
- TimelineGroup.cs
- FactoryMaker.cs
- AsyncResult.cs
- PixelFormats.cs
- NonParentingControl.cs
- _CacheStreams.cs
- FixedSOMTextRun.cs
- DetailsViewUpdatedEventArgs.cs
- handlecollector.cs
- GeneralTransform2DTo3DTo2D.cs
- SafeLocalMemHandle.cs
- ServerValidateEventArgs.cs
- DropTarget.cs
- CultureInfoConverter.cs
- Object.cs
- ExecutionContext.cs
- CodeLinePragma.cs
- Literal.cs
- ObjectDataSource.cs
- ExpressionBuilderContext.cs
- ProfessionalColors.cs
- RTLAwareMessageBox.cs
- FixedSOMTable.cs
- WinEventQueueItem.cs
- ArithmeticException.cs
- ThemeableAttribute.cs
- DataControlPagerLinkButton.cs
- StyleHelper.cs
- ListView.cs
- IntersectQueryOperator.cs
- DeviceContext.cs
- DynamicPropertyHolder.cs
- FunctionDefinition.cs
- MeasureItemEvent.cs
- MetricEntry.cs
- Transactions.cs
- ToolStripButton.cs
- ResourceDisplayNameAttribute.cs
- ArithmeticException.cs
- Pair.cs
- PackUriHelper.cs
- RestHandlerFactory.cs
- TCPListener.cs
- TransactionBridge.cs
- InheritanceContextChangedEventManager.cs
- InternalResources.cs
- SkinBuilder.cs
- Utility.cs
- SourceFileInfo.cs
- WSFederationHttpBindingElement.cs
- MetabaseServerConfig.cs
- WorkflowCommandExtensionItem.cs
- XmlCharacterData.cs
- TableSectionStyle.cs
- SmtpClient.cs
- LinqDataSourceContextEventArgs.cs
- DataGridViewCellValueEventArgs.cs
- WMICapabilities.cs
- XmlImplementation.cs
- ListViewItemSelectionChangedEvent.cs
- AccessorTable.cs
- MaskedTextBox.cs
- BindingExpressionUncommonField.cs
- CompositeCollectionView.cs
- InplaceBitmapMetadataWriter.cs
- SafeHandles.cs
- ICspAsymmetricAlgorithm.cs
- WebPartConnectionsConfigureVerb.cs
- WebOperationContext.cs
- NullReferenceException.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- PageCodeDomTreeGenerator.cs
- MemberInfoSerializationHolder.cs
- ImplicitInputBrush.cs
- ToReply.cs
- PageBreakRecord.cs
- TextTreeNode.cs
- ProxyHelper.cs
- SqlParameter.cs
- DiscoveryVersionConverter.cs
- SiteMapDataSourceDesigner.cs