Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / PreProcessInputEventArgs.cs / 1 / 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
- QilUnary.cs
- PointAnimationClockResource.cs
- RegistrySecurity.cs
- XmlCharType.cs
- ComplexLine.cs
- ResXDataNode.cs
- UIElementIsland.cs
- Formatter.cs
- SynchronizationValidator.cs
- DateTimeStorage.cs
- PeerApplicationLaunchInfo.cs
- CodeMemberMethod.cs
- DefaultWorkflowTransactionService.cs
- TopClause.cs
- SourceInterpreter.cs
- OrderByLifter.cs
- EdmError.cs
- SafeProcessHandle.cs
- TimeManager.cs
- XPathConvert.cs
- InvalidDataException.cs
- Vector3DValueSerializer.cs
- Classification.cs
- DataGridViewCellValueEventArgs.cs
- CurrencyWrapper.cs
- DesignerTransactionCloseEvent.cs
- DataTableReaderListener.cs
- SQLBinaryStorage.cs
- DbMetaDataColumnNames.cs
- MemberDescriptor.cs
- Trace.cs
- DynamicUpdateCommand.cs
- TransactionalPackage.cs
- MimeFormReflector.cs
- BitVector32.cs
- CultureSpecificCharacterBufferRange.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- BindingList.cs
- ClrPerspective.cs
- GridViewColumn.cs
- Binding.cs
- DocumentPaginator.cs
- PrivacyNoticeElement.cs
- MemberJoinTreeNode.cs
- ObjectParameter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SchemaElementDecl.cs
- BStrWrapper.cs
- PropertyInfoSet.cs
- SizeIndependentAnimationStorage.cs
- SrgsText.cs
- AffineTransform3D.cs
- HostSecurityManager.cs
- DisplayToken.cs
- TraceListener.cs
- ColumnBinding.cs
- RuntimeCompatibilityAttribute.cs
- NativeMethods.cs
- EditorPart.cs
- ViewDesigner.cs
- ByteAnimationBase.cs
- RegexStringValidatorAttribute.cs
- HitTestDrawingContextWalker.cs
- TrackBar.cs
- BezierSegment.cs
- glyphs.cs
- CompositeTypefaceMetrics.cs
- InstanceDataCollection.cs
- WebExceptionStatus.cs
- HttpHandlerAction.cs
- translator.cs
- XmlSchemaAnyAttribute.cs
- ActivityCodeDomSerializationManager.cs
- Storyboard.cs
- EventWaitHandleSecurity.cs
- PropertyEntry.cs
- Msec.cs
- AssemblyNameProxy.cs
- DecimalConverter.cs
- ReflectPropertyDescriptor.cs
- CssStyleCollection.cs
- CqlGenerator.cs
- AutoResetEvent.cs
- DesignSurfaceEvent.cs
- Graphics.cs
- GenerateScriptTypeAttribute.cs
- Reference.cs
- PrtCap_Public.cs
- HandlerBase.cs
- CreateUserWizard.cs
- RadioButton.cs
- DesignerVerbToolStripMenuItem.cs
- ClientConfigurationHost.cs
- AliasGenerator.cs
- JapaneseCalendar.cs
- formatter.cs
- WebPartEditorCancelVerb.cs
- ValueHandle.cs
- ListenerAdaptersInstallComponent.cs
- DocumentPageView.cs