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
- BridgeDataRecord.cs
- ZipArchive.cs
- SoapSchemaExporter.cs
- CodeDefaultValueExpression.cs
- ConfigXmlReader.cs
- IdnElement.cs
- DocumentApplicationJournalEntry.cs
- XslVisitor.cs
- ToolStripMenuItemCodeDomSerializer.cs
- LazyTextWriterCreator.cs
- WindowsScrollBarBits.cs
- XsdDuration.cs
- OutKeywords.cs
- ResourceSetExpression.cs
- InternalMappingException.cs
- LineGeometry.cs
- PKCS1MaskGenerationMethod.cs
- BitArray.cs
- AttributeExtensions.cs
- StreamUpdate.cs
- ApplicationCommands.cs
- StyleHelper.cs
- ProviderCommandInfoUtils.cs
- QuaternionKeyFrameCollection.cs
- NamedPipeWorkerProcess.cs
- MonitorWrapper.cs
- OpCopier.cs
- OrthographicCamera.cs
- PathParser.cs
- FormatPage.cs
- ProjectionPathBuilder.cs
- PipelineModuleStepContainer.cs
- GeneratedView.cs
- ToolStripContentPanel.cs
- DbCommandDefinition.cs
- JsonDeserializer.cs
- SecurityManager.cs
- UriScheme.cs
- NavigatorInput.cs
- MethodBuilderInstantiation.cs
- SerializationBinder.cs
- SqlConnectionFactory.cs
- DefaultEventAttribute.cs
- BinaryObjectWriter.cs
- PixelFormatConverter.cs
- MenuCommand.cs
- MsmqProcessProtocolHandler.cs
- WorkerRequest.cs
- TextLine.cs
- RSAPKCS1SignatureFormatter.cs
- ThrowHelper.cs
- WebPartConnection.cs
- TypeInformation.cs
- CodeStatement.cs
- ObjectDataSourceView.cs
- ProtocolsConfigurationHandler.cs
- WebPartZone.cs
- CharacterMetricsDictionary.cs
- TraceUtility.cs
- AggregateNode.cs
- CalloutQueueItem.cs
- FrameworkTemplate.cs
- CompositeFontFamily.cs
- SqlProviderServices.cs
- WebPartEditVerb.cs
- SiteMapPath.cs
- AspCompat.cs
- NullRuntimeConfig.cs
- ReferenceConverter.cs
- TemplateControl.cs
- ParameterBinding.cs
- BidirectionalDictionary.cs
- QilName.cs
- InvalidCastException.cs
- SqlDependency.cs
- CollectionBuilder.cs
- DataGridComponentEditor.cs
- rsa.cs
- WebServicesSection.cs
- DbConnectionPoolGroup.cs
- DataSourceControlBuilder.cs
- XXXInfos.cs
- SoapInteropTypes.cs
- FacetEnabledSchemaElement.cs
- CancelRequestedQuery.cs
- CallContext.cs
- DataService.cs
- SafeProcessHandle.cs
- Int16.cs
- DictionarySectionHandler.cs
- ComponentGuaranteesAttribute.cs
- OracleFactory.cs
- SafeRightsManagementHandle.cs
- BuildResult.cs
- ComplexObject.cs
- HtmlSelect.cs
- TCEAdapterGenerator.cs
- XmlAnyElementAttributes.cs
- Rfc2898DeriveBytes.cs
- DispatcherBuilder.cs