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
- XmlDigitalSignatureProcessor.cs
- HelpProvider.cs
- cookiecollection.cs
- CanExecuteRoutedEventArgs.cs
- SiblingIterators.cs
- Wow64ConfigurationLoader.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WrappedReader.cs
- PropertyEntry.cs
- _SafeNetHandles.cs
- ResourceBinder.cs
- UriSection.cs
- Vector3D.cs
- Encoder.cs
- SqlBuffer.cs
- ResourceFallbackManager.cs
- DocumentApplicationJournalEntry.cs
- XpsFixedPageReaderWriter.cs
- DialogResultConverter.cs
- HttpRequestWrapper.cs
- UpdatePanel.cs
- DataServiceHostFactory.cs
- ToolStripCollectionEditor.cs
- CollectionEditVerbManager.cs
- Gdiplus.cs
- RulePatternOps.cs
- DbQueryCommandTree.cs
- ToolStripMenuItem.cs
- InstancePersistence.cs
- SolidColorBrush.cs
- Delegate.cs
- HelpEvent.cs
- LocalValueEnumerator.cs
- DataMemberConverter.cs
- DataControlLinkButton.cs
- HashHelper.cs
- NativeMethods.cs
- securestring.cs
- ZipIOFileItemStream.cs
- SafeEventLogWriteHandle.cs
- DeflateStream.cs
- ActiveDocumentEvent.cs
- ContainerVisual.cs
- ChannelManager.cs
- ComplexType.cs
- IndicFontClient.cs
- Expander.cs
- AnnotationComponentManager.cs
- AesManaged.cs
- BindStream.cs
- CaseInsensitiveHashCodeProvider.cs
- ConfigXmlAttribute.cs
- QilFunction.cs
- TCPClient.cs
- ApplicationDirectoryMembershipCondition.cs
- XmlSchemaInclude.cs
- TraceListener.cs
- GeneralTransformGroup.cs
- SerializationStore.cs
- RangeValueProviderWrapper.cs
- ReferenceConverter.cs
- WindowsScrollBar.cs
- storepermissionattribute.cs
- RichTextBoxAutomationPeer.cs
- HttpConfigurationContext.cs
- ToolStripGrip.cs
- UserPreferenceChangingEventArgs.cs
- PathGradientBrush.cs
- FileDialogPermission.cs
- XmlCharCheckingReader.cs
- ZipIOExtraFieldPaddingElement.cs
- DataReaderContainer.cs
- rsa.cs
- RegexWriter.cs
- ScrollItemProviderWrapper.cs
- XmlImplementation.cs
- WebDescriptionAttribute.cs
- PeerObject.cs
- EDesignUtil.cs
- ChangePassword.cs
- _AutoWebProxyScriptEngine.cs
- MimeWriter.cs
- ListViewInsertedEventArgs.cs
- ButtonBase.cs
- QilStrConcatenator.cs
- RSAPKCS1KeyExchangeFormatter.cs
- StylusSystemGestureEventArgs.cs
- ActivityTypeCodeDomSerializer.cs
- LocalFileSettingsProvider.cs
- XslAstAnalyzer.cs
- NTAccount.cs
- SortKey.cs
- SHA1Managed.cs
- ConfigurationManagerInternalFactory.cs
- PenCursorManager.cs
- ServiceDeploymentInfo.cs
- ControlsConfig.cs
- DocumentStatusResources.cs
- _ConnectionGroup.cs
- InvalidDataException.cs