Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- grammarelement.cs
- AVElementHelper.cs
- BooleanExpr.cs
- ExpressionBuilderContext.cs
- DefaultValueMapping.cs
- MultitargetingHelpers.cs
- OutOfMemoryException.cs
- DataControlCommands.cs
- WindowsToolbarAsMenu.cs
- sqlstateclientmanager.cs
- WebRequest.cs
- X509CertificateStore.cs
- ComponentEditorPage.cs
- Visitors.cs
- Attributes.cs
- AnnouncementService.cs
- KnownBoxes.cs
- Deflater.cs
- TraceHelpers.cs
- Fault.cs
- AssociationEndMember.cs
- JsonFormatReaderGenerator.cs
- GridViewSortEventArgs.cs
- GuidelineSet.cs
- XmlDomTextWriter.cs
- thaishape.cs
- CalendarDesigner.cs
- PEFileReader.cs
- FixedDSBuilder.cs
- ExpressionDumper.cs
- BaseCodeDomTreeGenerator.cs
- UnsafeNativeMethods.cs
- SqlDesignerDataSourceView.cs
- RectIndependentAnimationStorage.cs
- RenderingEventArgs.cs
- ImageConverter.cs
- MobileContainerDesigner.cs
- GroupAggregateExpr.cs
- FontNameConverter.cs
- ObjectStorage.cs
- SqlXmlStorage.cs
- CounterCreationData.cs
- TextComposition.cs
- TableStyle.cs
- RoleExceptions.cs
- SpecularMaterial.cs
- SharedUtils.cs
- Evidence.cs
- SqlCachedBuffer.cs
- DefinitionUpdate.cs
- AttachedPropertyBrowsableAttribute.cs
- Container.cs
- TextBox.cs
- WebPartConnectionsConnectVerb.cs
- Type.cs
- DataObjectAttribute.cs
- MultiSelectRootGridEntry.cs
- StateInitializationDesigner.cs
- Point4D.cs
- ItemCollection.cs
- CacheAxisQuery.cs
- RelatedEnd.cs
- PageFunction.cs
- RangeBase.cs
- DrawingContext.cs
- StorageAssociationSetMapping.cs
- VariableExpressionConverter.cs
- ConfigurationValues.cs
- RadioButtonRenderer.cs
- AttachedAnnotation.cs
- SqlCrossApplyToCrossJoin.cs
- BindableAttribute.cs
- CloseCollectionAsyncResult.cs
- grammarelement.cs
- UrlMappingsModule.cs
- OracleColumn.cs
- NTAccount.cs
- WebPartCatalogAddVerb.cs
- PageThemeBuildProvider.cs
- RegexInterpreter.cs
- NameTable.cs
- TraceXPathNavigator.cs
- DocumentOrderQuery.cs
- UIElementIsland.cs
- XamlReaderHelper.cs
- Expander.cs
- PolicyStatement.cs
- SecurityPolicySection.cs
- WindowsFormsSynchronizationContext.cs
- ReadOnlyDictionary.cs
- _Win32.cs
- ItemCollection.cs
- HeaderCollection.cs
- ListItemConverter.cs
- webeventbuffer.cs
- SingleStorage.cs
- UrlParameterWriter.cs
- CompositeFontParser.cs
- Utils.cs
- RuntimeConfigurationRecord.cs