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
- EntityTransaction.cs
- HybridDictionary.cs
- DocumentViewerHelper.cs
- PageStatePersister.cs
- CodeExpressionStatement.cs
- DirectionalLight.cs
- WeakReferenceKey.cs
- TypedElement.cs
- StreamInfo.cs
- ObjectQueryState.cs
- SystemThemeKey.cs
- MSHTMLHostUtil.cs
- WebConfigurationHostFileChange.cs
- DataGridViewColumnEventArgs.cs
- Misc.cs
- KeyboardEventArgs.cs
- DataTableMapping.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- SqlRewriteScalarSubqueries.cs
- XmlSerializableWriter.cs
- HttpHostedTransportConfiguration.cs
- GridViewCancelEditEventArgs.cs
- SimpleWebHandlerParser.cs
- WindowsComboBox.cs
- ToolStripRenderEventArgs.cs
- CollectionChangedEventManager.cs
- SqlConnectionStringBuilder.cs
- WebPartHeaderCloseVerb.cs
- TagMapInfo.cs
- ProfileElement.cs
- ButtonField.cs
- QueryCacheManager.cs
- RuntimeWrappedException.cs
- DrawingVisual.cs
- BindingsSection.cs
- SerialErrors.cs
- sortedlist.cs
- MetabaseReader.cs
- FormsAuthenticationUser.cs
- SQLRoleProvider.cs
- ViewEvent.cs
- EventLogPermissionAttribute.cs
- ReferentialConstraint.cs
- PkcsUtils.cs
- KeyedCollection.cs
- ScriptControlDescriptor.cs
- HandleRef.cs
- ValidatorCompatibilityHelper.cs
- ResourceProperty.cs
- FactoryMaker.cs
- DataServiceHostWrapper.cs
- DataPagerFieldCommandEventArgs.cs
- TypeConverterAttribute.cs
- ResourceProperty.cs
- SchemaInfo.cs
- EntityModelBuildProvider.cs
- StringWriter.cs
- Avt.cs
- PageWrapper.cs
- ContentValidator.cs
- ThrowHelper.cs
- DragStartedEventArgs.cs
- Encoder.cs
- TreeViewDataItemAutomationPeer.cs
- DataGridViewCellParsingEventArgs.cs
- EpmSourcePathSegment.cs
- InputMethod.cs
- ImageMapEventArgs.cs
- ConfigurationElementProperty.cs
- XPathAxisIterator.cs
- EncoderParameter.cs
- XmlReader.cs
- NullRuntimeConfig.cs
- SmiMetaDataProperty.cs
- ButtonStandardAdapter.cs
- MasterPageCodeDomTreeGenerator.cs
- PanelStyle.cs
- InvokeGenerator.cs
- MessagePropertyFilter.cs
- FormViewDeletedEventArgs.cs
- EntityDataSourceChangingEventArgs.cs
- FilteredDataSetHelper.cs
- QueryExpr.cs
- DrawingCollection.cs
- Ipv6Element.cs
- ScrollProperties.cs
- IsolatedStorageFilePermission.cs
- HostExecutionContextManager.cs
- SafeEventLogWriteHandle.cs
- XmlSerializationReader.cs
- ConsoleEntryPoint.cs
- BehaviorService.cs
- DataGridItem.cs
- ConnectionStringSettings.cs
- EntityContainerEntitySet.cs
- ResourceReferenceExpression.cs
- ColorTransformHelper.cs
- MetadataPropertyAttribute.cs
- DataExpression.cs
- SqlAliaser.cs