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
- WindowsFormsSectionHandler.cs
- EditBehavior.cs
- TrackingQueryElement.cs
- SmtpSection.cs
- DispatcherProcessingDisabled.cs
- EdmProperty.cs
- DataGridSortingEventArgs.cs
- TrackingExtract.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- HostingMessageProperty.cs
- SafeWaitHandle.cs
- ObjectPersistData.cs
- RemotingClientProxy.cs
- MsmqInputChannelListener.cs
- MarkupCompilePass2.cs
- TextDecoration.cs
- BasicExpandProvider.cs
- StickyNoteHelper.cs
- HostProtectionException.cs
- WebCategoryAttribute.cs
- SplitContainer.cs
- SafeRegistryHandle.cs
- WebServiceParameterData.cs
- _BufferOffsetSize.cs
- TemplateKeyConverter.cs
- DateTimeParse.cs
- Wildcard.cs
- TaskFileService.cs
- SamlDoNotCacheCondition.cs
- Compiler.cs
- SweepDirectionValidation.cs
- BrushConverter.cs
- IDataContractSurrogate.cs
- MemberDescriptor.cs
- SettingsSection.cs
- Win32Native.cs
- FamilyTypeface.cs
- ProfileParameter.cs
- SystemNetHelpers.cs
- PointLight.cs
- ListSortDescription.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- CommonRemoteMemoryBlock.cs
- ImageAttributes.cs
- OraclePermissionAttribute.cs
- QuaternionRotation3D.cs
- AnnotationResourceChangedEventArgs.cs
- ListViewDeleteEventArgs.cs
- TdsParserStaticMethods.cs
- DocumentCollection.cs
- UsernameTokenFactoryCredential.cs
- Encoder.cs
- IndexedGlyphRun.cs
- SubMenuStyle.cs
- ContentElement.cs
- HandlerFactoryCache.cs
- CollectionDataContract.cs
- LockedBorderGlyph.cs
- DictionaryEditChange.cs
- ByteAnimationBase.cs
- Themes.cs
- ColorConverter.cs
- Connection.cs
- CompileLiteralTextParser.cs
- Opcode.cs
- Variant.cs
- SerialPort.cs
- DrawingImage.cs
- StsCommunicationException.cs
- SemanticAnalyzer.cs
- ModelPerspective.cs
- SmiXetterAccessMap.cs
- SqlInternalConnectionTds.cs
- SqlStatistics.cs
- DesignerHelpers.cs
- AnnotationStore.cs
- ServiceDocument.cs
- WebPartTracker.cs
- TdsValueSetter.cs
- PenLineJoinValidation.cs
- ExeContext.cs
- RedistVersionInfo.cs
- RichTextBoxAutomationPeer.cs
- SubMenuStyle.cs
- SynchronizedDispatch.cs
- EngineSiteSapi.cs
- DBSchemaRow.cs
- SortedDictionary.cs
- ImplicitInputBrush.cs
- ConstrainedDataObject.cs
- DataGridViewTopRowAccessibleObject.cs
- ErrorTableItemStyle.cs
- GridEntry.cs
- ConfigsHelper.cs
- CurrencyManager.cs
- MatrixStack.cs
- HybridWebProxyFinder.cs
- PolicyStatement.cs
- String.cs
- Events.cs