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
- ThemeDictionaryExtension.cs
- CodeTypeDeclaration.cs
- HMACSHA512.cs
- XmlDeclaration.cs
- RSAPKCS1SignatureFormatter.cs
- Annotation.cs
- SrgsElement.cs
- ConfigurationManagerHelper.cs
- GorillaCodec.cs
- BamlRecords.cs
- UpdatableGenericsFeature.cs
- Rfc2898DeriveBytes.cs
- XmlWriterSettings.cs
- EmptyQuery.cs
- TerminateDesigner.cs
- DocumentDesigner.cs
- JsonUriDataContract.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ValidatingPropertiesEventArgs.cs
- TableItemPattern.cs
- ObjectConverter.cs
- XmlSchemaAttributeGroupRef.cs
- NetworkCredential.cs
- ToolStripDropTargetManager.cs
- ShapingWorkspace.cs
- MailAddressCollection.cs
- EUCJPEncoding.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TabPage.cs
- DataObjectPastingEventArgs.cs
- SQLMoneyStorage.cs
- NonVisualControlAttribute.cs
- NavigationProgressEventArgs.cs
- ApplicationSecurityManager.cs
- CustomSignedXml.cs
- CurrentChangingEventManager.cs
- ImportCatalogPart.cs
- DataServiceResponse.cs
- HttpFileCollection.cs
- autovalidator.cs
- RelationalExpressions.cs
- MyContact.cs
- RectAnimationUsingKeyFrames.cs
- WebRequestModuleElement.cs
- AudioFileOut.cs
- LineInfo.cs
- HtmlMeta.cs
- ProcessInputEventArgs.cs
- SpeechUI.cs
- DefaultHttpHandler.cs
- Permission.cs
- LocalizationComments.cs
- DataObject.cs
- LogAppendAsyncResult.cs
- CompilerTypeWithParams.cs
- UTF32Encoding.cs
- XmlNodeList.cs
- DropDownHolder.cs
- SqlSelectClauseBuilder.cs
- StylusCollection.cs
- ObjectIDGenerator.cs
- SafeCertificateContext.cs
- Soap11ServerProtocol.cs
- RankException.cs
- ClosableStream.cs
- AbstractSvcMapFileLoader.cs
- SmiConnection.cs
- BinaryKeyIdentifierClause.cs
- AdCreatedEventArgs.cs
- xml.cs
- _AutoWebProxyScriptHelper.cs
- EncodingNLS.cs
- Resources.Designer.cs
- DesignerContextDescriptor.cs
- ViewGenResults.cs
- ConsoleCancelEventArgs.cs
- ClickablePoint.cs
- ExternalDataExchangeClient.cs
- LoadedOrUnloadedOperation.cs
- SQLGuid.cs
- PatternMatcher.cs
- Positioning.cs
- EnumType.cs
- Convert.cs
- ListenerChannelContext.cs
- ConfigXmlDocument.cs
- WhitespaceRuleReader.cs
- WebPartPersonalization.cs
- ThreadSafeMessageFilterTable.cs
- IRCollection.cs
- UpdateRecord.cs
- UInt16Converter.cs
- FormViewDeletedEventArgs.cs
- AdapterDictionary.cs
- InfocardExtendedInformationCollection.cs
- ColorAnimationUsingKeyFrames.cs
- DesignObjectWrapper.cs
- typedescriptorpermissionattribute.cs
- ChannelBinding.cs
- Rfc2898DeriveBytes.cs