Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StrongTypingException.cs
- VirtualPathProvider.cs
- HelloOperationCD1AsyncResult.cs
- ResourceFallbackManager.cs
- SafeNativeMethods.cs
- DesignerValidationSummaryAdapter.cs
- TreeIterator.cs
- ColumnMapTranslator.cs
- IndentTextWriter.cs
- SafePipeHandle.cs
- PropertyItem.cs
- AsymmetricSignatureFormatter.cs
- ManifestResourceInfo.cs
- UserInitiatedNavigationPermission.cs
- SupportsEventValidationAttribute.cs
- BinaryWriter.cs
- ScriptRegistrationManager.cs
- OSEnvironmentHelper.cs
- ScriptManagerProxy.cs
- NegationPusher.cs
- RowCache.cs
- Tokenizer.cs
- SaveFileDialog.cs
- DebugHandleTracker.cs
- TransactionProtocolConverter.cs
- RecipientIdentity.cs
- Calendar.cs
- SqlWebEventProvider.cs
- PinnedBufferMemoryStream.cs
- SystemIPInterfaceProperties.cs
- GcHandle.cs
- ResourceExpression.cs
- Pair.cs
- Point3DKeyFrameCollection.cs
- VisualTransition.cs
- _CookieModule.cs
- BooleanToVisibilityConverter.cs
- XmlSchemaAny.cs
- RelationalExpressions.cs
- Membership.cs
- SchemaLookupTable.cs
- DnsCache.cs
- DocumentCollection.cs
- NopReturnReader.cs
- ItemCheckEvent.cs
- _emptywebproxy.cs
- Underline.cs
- MultipartIdentifier.cs
- DataGridViewHitTestInfo.cs
- Encoder.cs
- MemoryPressure.cs
- AuthenticationModeHelper.cs
- CloseSequence.cs
- StorageComplexPropertyMapping.cs
- MethodExpression.cs
- LineBreakRecord.cs
- GridItemCollection.cs
- AudioStateChangedEventArgs.cs
- InstancePersistenceEvent.cs
- XmlNodeWriter.cs
- ListViewItemCollectionEditor.cs
- Utils.cs
- TextOnlyOutput.cs
- IResourceProvider.cs
- WebServiceClientProxyGenerator.cs
- DatagridviewDisplayedBandsData.cs
- PopupRootAutomationPeer.cs
- Atom10FormatterFactory.cs
- KeyConverter.cs
- MsmqIntegrationReceiveParameters.cs
- CopyAction.cs
- ActivityUtilities.cs
- RawStylusActions.cs
- ControllableStoryboardAction.cs
- XmlAttribute.cs
- StylusPointProperty.cs
- ScriptResourceInfo.cs
- ImportOptions.cs
- ExpressionNormalizer.cs
- JapaneseCalendar.cs
- XmlHierarchicalEnumerable.cs
- TreeNodeSelectionProcessor.cs
- IdentityHolder.cs
- DbConnectionPoolIdentity.cs
- FixedSOMLineRanges.cs
- TreeView.cs
- AudioFormatConverter.cs
- NodeInfo.cs
- ServiceBehaviorAttribute.cs
- FrameworkReadOnlyPropertyMetadata.cs
- AssociatedControlConverter.cs
- CompleteWizardStep.cs
- CodeDelegateCreateExpression.cs
- DocobjHost.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- WebPageTraceListener.cs
- CommonObjectSecurity.cs
- SqlUdtInfo.cs
- ProviderConnectionPointCollection.cs
- WebMessageBodyStyleHelper.cs