Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / PreProcessInputEventArgs.cs / 1305600 / PreProcessInputEventArgs.cs
using System; using System.Security.Permissions; using System.Security; namespace System.Windows.Input { ////// Allows the handler to cancel the processing of an input event. /// ////// An instance of this class is passed to the handlers of the /// following events: /// public sealed class PreProcessInputEventArgs : ProcessInputEventArgs { // Only we can make these. Note that we cache and reuse instances. internal PreProcessInputEventArgs() {} //////
///- ///
////// /// Critical calls ProcessInputEventArgs.Reset ( critical as it handles InputManager) /// [SecurityCritical] internal override void Reset(StagingAreaInputItem input, InputManager inputManager) { _canceled = false; base.Reset(input, inputManager); } ////// Cancels the processing of the input event. /// public void Cancel() { _canceled = true; } ////// Whether or not the input event processing was canceled. /// public bool Canceled {get {return _canceled;}} private bool _canceled; } ////// Delegate type for handles of events that use /// public delegate void PreProcessInputEventHandler(object sender, PreProcessInputEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Security.Permissions; using System.Security; namespace System.Windows.Input { ///. /// /// Allows the handler to cancel the processing of an input event. /// ////// An instance of this class is passed to the handlers of the /// following events: /// public sealed class PreProcessInputEventArgs : ProcessInputEventArgs { // Only we can make these. Note that we cache and reuse instances. internal PreProcessInputEventArgs() {} //////
///- ///
////// /// Critical calls ProcessInputEventArgs.Reset ( critical as it handles InputManager) /// [SecurityCritical] internal override void Reset(StagingAreaInputItem input, InputManager inputManager) { _canceled = false; base.Reset(input, inputManager); } ////// Cancels the processing of the input event. /// public void Cancel() { _canceled = true; } ////// Whether or not the input event processing was canceled. /// public bool Canceled {get {return _canceled;}} private bool _canceled; } ////// Delegate type for handles of events that use /// public delegate void PreProcessInputEventHandler(object sender, PreProcessInputEventArgs e); } // 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
- SystemNetHelpers.cs
- AdornedElementPlaceholder.cs
- SymmetricAlgorithm.cs
- OracleConnectionString.cs
- EditingCoordinator.cs
- ReservationCollection.cs
- NativeMethods.cs
- KeyGestureConverter.cs
- BuildDependencySet.cs
- VisualStyleTypesAndProperties.cs
- XsltFunctions.cs
- SqlDataSource.cs
- SafeTimerHandle.cs
- Statements.cs
- EventSetter.cs
- MailWebEventProvider.cs
- NonNullItemCollection.cs
- DictionaryGlobals.cs
- XmlEncoding.cs
- TypeDescriptor.cs
- ObjectSerializerFactory.cs
- GridViewRowPresenterBase.cs
- EmptyStringExpandableObjectConverter.cs
- Zone.cs
- NativeMethodsOther.cs
- StaticResourceExtension.cs
- EventManager.cs
- SynchronizedPool.cs
- DataServiceQueryOfT.cs
- WorkflowServiceAttributes.cs
- InternalCompensate.cs
- EntityTemplateFactory.cs
- ConstNode.cs
- TextEffectCollection.cs
- TextAdaptor.cs
- WSFederationHttpBindingElement.cs
- cookieexception.cs
- WindowsIdentity.cs
- PointLight.cs
- AttributeData.cs
- SegmentTree.cs
- BoundsDrawingContextWalker.cs
- keycontainerpermission.cs
- SmtpNtlmAuthenticationModule.cs
- PackagePart.cs
- XmlJsonWriter.cs
- MouseOverProperty.cs
- TraceSource.cs
- DbTransaction.cs
- DoubleLinkListEnumerator.cs
- SystemTcpConnection.cs
- XmlDigitalSignatureProcessor.cs
- SchemaAttDef.cs
- IdnMapping.cs
- ScriptModule.cs
- SR.Designer.cs
- NameScope.cs
- ValidationError.cs
- AppPool.cs
- Vector.cs
- NumericPagerField.cs
- ItemContainerPattern.cs
- DoubleAnimationUsingPath.cs
- KeyGesture.cs
- ToolTipService.cs
- BoundPropertyEntry.cs
- Accessible.cs
- X509Certificate2Collection.cs
- BitStream.cs
- SizeAnimationUsingKeyFrames.cs
- RotateTransform3D.cs
- StopRoutingHandler.cs
- WebControlsSection.cs
- DecoderExceptionFallback.cs
- ImageDrawing.cs
- MasterPageCodeDomTreeGenerator.cs
- CacheMemory.cs
- ResetableIterator.cs
- RowUpdatingEventArgs.cs
- securitycriticaldataformultiplegetandset.cs
- SecurityCookieModeValidator.cs
- ChildrenQuery.cs
- ToolboxItemFilterAttribute.cs
- EntityDataSourceValidationException.cs
- UIElementCollection.cs
- XmlDownloadManager.cs
- DeferredElementTreeState.cs
- MexHttpsBindingCollectionElement.cs
- ContentType.cs
- WebSysDisplayNameAttribute.cs
- SchemaImporterExtensionElement.cs
- DataGridDesigner.cs
- ServiceHandle.cs
- ProxyBuilder.cs
- OracleInfoMessageEventArgs.cs
- UriScheme.cs
- EncoderFallback.cs
- DbConnectionPoolGroup.cs
- printdlgexmarshaler.cs
- CustomCredentialPolicy.cs