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
- ProcessActivityTreeOptions.cs
- ThousandthOfEmRealPoints.cs
- SqlWriter.cs
- Queue.cs
- ScrollItemPattern.cs
- TraceLog.cs
- ElementHost.cs
- StreamWithDictionary.cs
- JsonWriterDelegator.cs
- RawStylusInputCustomData.cs
- CodeNamespaceImportCollection.cs
- PageTheme.cs
- WindowsFont.cs
- HtmlEncodedRawTextWriter.cs
- HttpAsyncResult.cs
- MarkerProperties.cs
- RectangleGeometry.cs
- WindowsSecurityTokenAuthenticator.cs
- ToolStripCustomTypeDescriptor.cs
- OpenTypeLayoutCache.cs
- MemberJoinTreeNode.cs
- KeyValueSerializer.cs
- TextElementCollection.cs
- DataSourceCache.cs
- Int32.cs
- Latin1Encoding.cs
- User.cs
- MetadataUtilsSmi.cs
- Brush.cs
- XmlSchemaChoice.cs
- MultipleViewPattern.cs
- CorrelationManager.cs
- PropertyChangedEventArgs.cs
- DataListCommandEventArgs.cs
- SqlDataSourceTableQuery.cs
- dataSvcMapFileLoader.cs
- Command.cs
- WebPartUtil.cs
- QilTypeChecker.cs
- SoapObjectWriter.cs
- BatchParser.cs
- PropertyChangingEventArgs.cs
- BStrWrapper.cs
- Operand.cs
- DataGridViewRow.cs
- TracedNativeMethods.cs
- HtmlFormParameterWriter.cs
- ValuePattern.cs
- ProcessHostConfigUtils.cs
- SizeChangedInfo.cs
- PrimitiveXmlSerializers.cs
- XmlSerializationWriter.cs
- Rect3DConverter.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- HttpChannelHelpers.cs
- XmlBinaryWriterSession.cs
- NumberSubstitution.cs
- KnownBoxes.cs
- TileBrush.cs
- RSAPKCS1SignatureFormatter.cs
- Menu.cs
- Helper.cs
- EmissiveMaterial.cs
- ContextMenu.cs
- LayoutEvent.cs
- HttpConfigurationSystem.cs
- FileLogRecordStream.cs
- ChangeProcessor.cs
- TransactionFlowElement.cs
- CalendarDateRange.cs
- PageClientProxyGenerator.cs
- KeyTimeConverter.cs
- GACIdentityPermission.cs
- GridItem.cs
- PersistenceTypeAttribute.cs
- GradientBrush.cs
- SafeEventLogWriteHandle.cs
- DesignTimeSiteMapProvider.cs
- ProfileSection.cs
- ResXResourceSet.cs
- IListConverters.cs
- EntityClientCacheKey.cs
- SoapExtensionImporter.cs
- SessionPageStatePersister.cs
- DataGridViewRowConverter.cs
- TypeElementCollection.cs
- _SpnDictionary.cs
- SharedStatics.cs
- XmlSchemaSimpleType.cs
- httpserverutility.cs
- WebRequest.cs
- CancelEventArgs.cs
- CompositeFontInfo.cs
- DocumentApplicationJournalEntry.cs
- BrowserCapabilitiesFactory.cs
- DesignSurfaceServiceContainer.cs
- FamilyCollection.cs
- Publisher.cs
- DeferredReference.cs
- HtmlTableCellCollection.cs