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
- bidPrivateBase.cs
- WebHeaderCollection.cs
- GuidTagList.cs
- DbReferenceCollection.cs
- AllMembershipCondition.cs
- PageStatePersister.cs
- HtmlInputControl.cs
- ObjectDataSourceSelectingEventArgs.cs
- TreeNodeCollection.cs
- TextParentUndoUnit.cs
- Point3DValueSerializer.cs
- Privilege.cs
- DragSelectionMessageFilter.cs
- WindowsScrollBar.cs
- FileStream.cs
- DataReceivedEventArgs.cs
- SafeFindHandle.cs
- FigureParagraph.cs
- TextRenderer.cs
- FSWPathEditor.cs
- DirectoryInfo.cs
- GeometryValueSerializer.cs
- OleDbConnectionInternal.cs
- NativeMethods.cs
- ObjectNotFoundException.cs
- Script.cs
- _ContextAwareResult.cs
- DrawingCollection.cs
- MexTcpBindingElement.cs
- Annotation.cs
- BaseTreeIterator.cs
- XmlCompatibilityReader.cs
- DbConnectionPoolGroup.cs
- DesignTimeVisibleAttribute.cs
- HwndKeyboardInputProvider.cs
- DataGridViewRowConverter.cs
- ServiceObjectContainer.cs
- altserialization.cs
- DataServiceQuery.cs
- SID.cs
- baseaxisquery.cs
- ResponseStream.cs
- SequentialOutput.cs
- WebBrowserNavigatingEventHandler.cs
- XPathException.cs
- SizeAnimation.cs
- UnsafeNativeMethods.cs
- EdmItemError.cs
- IteratorFilter.cs
- RunWorkerCompletedEventArgs.cs
- XsdBuilder.cs
- CodeIterationStatement.cs
- RemotingService.cs
- DynamicDiscoveryDocument.cs
- NamedPipeConnectionPoolSettingsElement.cs
- QueuePathDialog.cs
- __ComObject.cs
- DependencyPropertyValueSerializer.cs
- TabItem.cs
- MobileUserControlDesigner.cs
- FilterElement.cs
- Transactions.cs
- XmlNodeChangedEventArgs.cs
- ParameterModifier.cs
- QueryCorrelationInitializer.cs
- NativeMethods.cs
- TreeNodeConverter.cs
- WindowsNonControl.cs
- MetadataItem_Static.cs
- DataGridViewColumnDesigner.cs
- XmlResolver.cs
- ComProxy.cs
- ListenerPerfCounters.cs
- SortedDictionary.cs
- GroupBox.cs
- WindowsRegion.cs
- DocumentReferenceCollection.cs
- HttpPostedFile.cs
- AppDomainAttributes.cs
- SemanticBasicElement.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SystemColorTracker.cs
- ToolboxItemImageConverter.cs
- ContractHandle.cs
- ObjectListSelectEventArgs.cs
- UInt64.cs
- ProtocolsConfigurationEntry.cs
- RowToParametersTransformer.cs
- TagElement.cs
- AttachedAnnotationChangedEventArgs.cs
- ExtractorMetadata.cs
- MissingSatelliteAssemblyException.cs
- HiddenField.cs
- DataFormats.cs
- ProcessHostServerConfig.cs
- CallTemplateAction.cs
- _ListenerResponseStream.cs
- BamlReader.cs
- XsdDataContractExporter.cs
- ChangeBlockUndoRecord.cs