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
- TypeNameHelper.cs
- PrintingPermission.cs
- ObjectDataSourceChooseMethodsPanel.cs
- MobileControlDesigner.cs
- MultipleViewPatternIdentifiers.cs
- HttpProfileBase.cs
- SoapExtensionImporter.cs
- contentDescriptor.cs
- PerformanceCounterCategory.cs
- KnownColorTable.cs
- MembershipSection.cs
- BoolExpression.cs
- QilVisitor.cs
- OleDbReferenceCollection.cs
- FormParameter.cs
- HtmlLink.cs
- EventManager.cs
- ScriptResourceAttribute.cs
- FrameworkElementFactory.cs
- SHA256Managed.cs
- X509ChainPolicy.cs
- CodeExpressionStatement.cs
- LayoutEvent.cs
- ToolboxItemAttribute.cs
- GeneratedCodeAttribute.cs
- IPGlobalProperties.cs
- CommandExpr.cs
- Memoizer.cs
- SqlTypesSchemaImporter.cs
- SQLConvert.cs
- FloatSumAggregationOperator.cs
- Clipboard.cs
- DbConnectionPoolCounters.cs
- NativeMethods.cs
- OdbcConnectionOpen.cs
- Panel.cs
- XmlBaseWriter.cs
- DataGridViewTextBoxEditingControl.cs
- TreeChangeInfo.cs
- DefaultHttpHandler.cs
- XD.cs
- CompareInfo.cs
- EmptyStringExpandableObjectConverter.cs
- LocatorManager.cs
- SortDescriptionCollection.cs
- EnumConverter.cs
- SubMenuStyleCollection.cs
- DataGridViewColumnHeaderCell.cs
- VariantWrapper.cs
- FormatException.cs
- PaintValueEventArgs.cs
- SqlDependencyListener.cs
- OuterGlowBitmapEffect.cs
- FontInfo.cs
- RegistryKey.cs
- X509Chain.cs
- ConfigurationException.cs
- BaseDataList.cs
- DataGridHelper.cs
- ExceptionUtil.cs
- OutputCacheSettingsSection.cs
- ServicePointManagerElement.cs
- KnownAssembliesSet.cs
- ColorPalette.cs
- ProcessHost.cs
- HttpTransportElement.cs
- CalendarBlackoutDatesCollection.cs
- printdlgexmarshaler.cs
- Table.cs
- ToolStripDropDown.cs
- DBCommandBuilder.cs
- ActivityDesigner.cs
- AccessText.cs
- NativeObjectSecurity.cs
- UIElement3DAutomationPeer.cs
- ListBindableAttribute.cs
- ArgIterator.cs
- ConfigurationElementProperty.cs
- _Events.cs
- CheckBoxFlatAdapter.cs
- querybuilder.cs
- BitmapScalingModeValidation.cs
- Translator.cs
- Completion.cs
- ExceptionUtil.cs
- AutoGeneratedFieldProperties.cs
- ThrowHelper.cs
- DataColumn.cs
- ArrayListCollectionBase.cs
- IndexedString.cs
- Substitution.cs
- RemoveFromCollection.cs
- Token.cs
- XmlReflectionImporter.cs
- SqlLiftWhereClauses.cs
- SimpleWebHandlerParser.cs
- MimeWriter.cs
- XmlEnumAttribute.cs
- XamlRtfConverter.cs
- DataBindingExpressionBuilder.cs