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
- BitArray.cs
- Hex.cs
- UnsafeNativeMethods.cs
- SignatureDescription.cs
- SharedStatics.cs
- EmptyImpersonationContext.cs
- RsaKeyIdentifierClause.cs
- GuidelineCollection.cs
- NamedServiceModelExtensionCollectionElement.cs
- ObjectSecurity.cs
- ParallelQuery.cs
- TableSectionStyle.cs
- DataGridViewCellPaintingEventArgs.cs
- WindowsEditBoxRange.cs
- Compilation.cs
- MarkupCompiler.cs
- EntityTemplateUserControl.cs
- PhysicalFontFamily.cs
- DataGridViewDataErrorEventArgs.cs
- RuleConditionDialog.Designer.cs
- EntityCodeGenerator.cs
- PartitionedStream.cs
- DataControlField.cs
- Span.cs
- RelatedImageListAttribute.cs
- BamlResourceContent.cs
- DataPagerFieldItem.cs
- EncryptedXml.cs
- TabControl.cs
- COM2Properties.cs
- DropSource.cs
- ColumnHeader.cs
- PageOrientation.cs
- TraceUtility.cs
- WriterOutput.cs
- BasicHttpMessageCredentialType.cs
- _SpnDictionary.cs
- ScriptRef.cs
- CompilationLock.cs
- XslAst.cs
- WpfPayload.cs
- NativeMethods.cs
- DetailsViewCommandEventArgs.cs
- AbstractSvcMapFileLoader.cs
- SplitContainer.cs
- AdRotatorDesigner.cs
- SafeCoTaskMem.cs
- XmlSerializerAssemblyAttribute.cs
- ObjectSecurityT.cs
- FloatSumAggregationOperator.cs
- TableItemStyle.cs
- DetailsViewCommandEventArgs.cs
- VerticalAlignConverter.cs
- SerialErrors.cs
- InputScope.cs
- Win32.cs
- AddingNewEventArgs.cs
- HtmlShimManager.cs
- RegexWorker.cs
- ToolBarButton.cs
- NativeMethods.cs
- HandledMouseEvent.cs
- ShaperBuffers.cs
- SmtpDigestAuthenticationModule.cs
- ArraySegment.cs
- Renderer.cs
- CodeObject.cs
- EventSetter.cs
- ParamArrayAttribute.cs
- ClientSettingsSection.cs
- DataContractSerializer.cs
- SHA1Managed.cs
- AuthenticationModulesSection.cs
- Thumb.cs
- Window.cs
- Cursor.cs
- PostBackOptions.cs
- Stylesheet.cs
- SelectionItemProviderWrapper.cs
- SQLUtility.cs
- OutKeywords.cs
- Point3DCollection.cs
- ObjectView.cs
- HtmlImage.cs
- ConfigurationManager.cs
- ComboBoxAutomationPeer.cs
- HMACSHA384.cs
- KnownTypes.cs
- NavigateEvent.cs
- ScrollItemPatternIdentifiers.cs
- ToolStripManager.cs
- ButtonField.cs
- RemoteWebConfigurationHost.cs
- RecognizedWordUnit.cs
- PolyLineSegment.cs
- Formatter.cs
- SQLBinaryStorage.cs
- PageWrapper.cs
- Validator.cs
- CodeCompileUnit.cs