Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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. 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
- Function.cs
- UserUseLicenseDictionaryLoader.cs
- BuildProvidersCompiler.cs
- ToolStripScrollButton.cs
- SessionEndingEventArgs.cs
- SoundPlayer.cs
- TextDocumentView.cs
- UserControl.cs
- XmlIgnoreAttribute.cs
- DrawingAttributesDefaultValueFactory.cs
- ScopelessEnumAttribute.cs
- PageCodeDomTreeGenerator.cs
- GlyphManager.cs
- ContentElementAutomationPeer.cs
- InlineObject.cs
- UserCancellationException.cs
- CreateUserWizardStep.cs
- DefaultTextStoreTextComposition.cs
- StaticResourceExtension.cs
- IsolatedStorageFilePermission.cs
- DBCommand.cs
- CardSpaceShim.cs
- JsonSerializer.cs
- safelink.cs
- ScriptResourceInfo.cs
- ConfigsHelper.cs
- RtType.cs
- MissingMemberException.cs
- ObjectListDataBindEventArgs.cs
- DatatypeImplementation.cs
- DataGridCommandEventArgs.cs
- CompiledQuery.cs
- VectorCollectionConverter.cs
- StoryFragments.cs
- ModelItemExtensions.cs
- GenericWebPart.cs
- UInt32Storage.cs
- ImageEditor.cs
- StylusCollection.cs
- InternalPermissions.cs
- IndentedWriter.cs
- SurrogateEncoder.cs
- CachedTypeface.cs
- PhysicalFontFamily.cs
- MachinePropertyVariants.cs
- DispatcherFrame.cs
- ApplicationInfo.cs
- BaseComponentEditor.cs
- ThumbAutomationPeer.cs
- HierarchicalDataBoundControl.cs
- SafeArrayTypeMismatchException.cs
- DebugView.cs
- IxmlLineInfo.cs
- validation.cs
- PassportAuthenticationEventArgs.cs
- Control.cs
- ScalarType.cs
- MimeTypeAttribute.cs
- ForEach.cs
- QuotedPrintableStream.cs
- BitmapPalettes.cs
- IpcServerChannel.cs
- SurrogateChar.cs
- ByteKeyFrameCollection.cs
- X509PeerCertificateAuthentication.cs
- RadialGradientBrush.cs
- XmlEncoding.cs
- TableLayoutSettingsTypeConverter.cs
- ToolStripLabel.cs
- Point3DCollection.cs
- EntityDataSourceWrapperCollection.cs
- SecurityTokenSerializer.cs
- FixedSOMPageElement.cs
- GrammarBuilderBase.cs
- DataListItem.cs
- ChannelFactory.cs
- FileCodeGroup.cs
- AssociationEndMember.cs
- TrackingProfileManager.cs
- TreeNodeStyleCollection.cs
- SqlCachedBuffer.cs
- RenderDataDrawingContext.cs
- SmiMetaDataProperty.cs
- InputDevice.cs
- UpdateRecord.cs
- FrameworkElement.cs
- Visual3D.cs
- RecognizedPhrase.cs
- ListBindableAttribute.cs
- CodeComment.cs
- CodeArgumentReferenceExpression.cs
- ClonableStack.cs
- SoapObjectInfo.cs
- TriggerAction.cs
- __TransparentProxy.cs
- XmlQueryTypeFactory.cs
- ShapeTypeface.cs
- Membership.cs
- LinkButton.cs
- PlainXmlWriter.cs