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
- x509store.cs
- StylusPoint.cs
- ExpanderAutomationPeer.cs
- WebPartTransformerCollection.cs
- Stylesheet.cs
- JavaScriptString.cs
- PbrsForward.cs
- ConstrainedDataObject.cs
- CompilationLock.cs
- OleDbDataReader.cs
- GrammarBuilderDictation.cs
- PartialArray.cs
- Operators.cs
- XmlMtomReader.cs
- ControlBindingsCollection.cs
- SqlDataSourceCache.cs
- WrappedIUnknown.cs
- NumberFormatInfo.cs
- XmlTextReader.cs
- MediaTimeline.cs
- MobileUserControlDesigner.cs
- DataKeyArray.cs
- ServiceOperationParameter.cs
- XmlAtomicValue.cs
- EpmSyndicationContentDeSerializer.cs
- XmlArrayAttribute.cs
- printdlgexmarshaler.cs
- BitmapFrameDecode.cs
- sqlmetadatafactory.cs
- PtsCache.cs
- OpenFileDialog.cs
- DynamicExpression.cs
- SchemaTypeEmitter.cs
- InputMethodStateChangeEventArgs.cs
- categoryentry.cs
- ConstantCheck.cs
- Bezier.cs
- Rect3D.cs
- JsonObjectDataContract.cs
- FileDialogCustomPlace.cs
- KerberosSecurityTokenAuthenticator.cs
- DesignerCategoryAttribute.cs
- COSERVERINFO.cs
- EventToken.cs
- EventSinkHelperWriter.cs
- RelationshipDetailsCollection.cs
- StatusBar.cs
- FormsAuthenticationTicket.cs
- HtmlInputControl.cs
- DisplayNameAttribute.cs
- ZoneButton.cs
- Partitioner.cs
- FlowDocumentFormatter.cs
- SafeNativeMethods.cs
- DbgCompiler.cs
- DbParameterHelper.cs
- EventLogTraceListener.cs
- ApplicationSecurityManager.cs
- Int32CollectionValueSerializer.cs
- SendMailErrorEventArgs.cs
- NameValuePair.cs
- MethodBody.cs
- NameSpaceExtractor.cs
- TemplateBuilder.cs
- ToolStripContainer.cs
- NativeMethods.cs
- ContactManager.cs
- KnownBoxes.cs
- BindingBase.cs
- SvcMapFileLoader.cs
- storagemappingitemcollection.viewdictionary.cs
- ListControlDesigner.cs
- FramingFormat.cs
- SwitchAttribute.cs
- DateTimeStorage.cs
- SharedPersonalizationStateInfo.cs
- ListViewInsertedEventArgs.cs
- webeventbuffer.cs
- AttachedAnnotation.cs
- UnsafeNativeMethods.cs
- MyContact.cs
- TextParagraphView.cs
- ProfileGroupSettings.cs
- OrCondition.cs
- NetNamedPipeSecurityMode.cs
- ResXBuildProvider.cs
- DependencyPropertyChangedEventArgs.cs
- RegexRunnerFactory.cs
- SHA384Managed.cs
- UnitySerializationHolder.cs
- ParserStreamGeometryContext.cs
- WizardForm.cs
- UserControlAutomationPeer.cs
- ByteConverter.cs
- DataRowView.cs
- ZipIOLocalFileHeader.cs
- AuthenticationSchemesHelper.cs
- CodePageUtils.cs
- ToolStripContentPanel.cs
- SqlCharStream.cs