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
- PageAdapter.cs
- SemanticAnalyzer.cs
- ActivityValidationServices.cs
- InertiaRotationBehavior.cs
- MetadataArtifactLoaderCompositeFile.cs
- HtmlPageAdapter.cs
- HitTestResult.cs
- SafeEventHandle.cs
- documentsequencetextview.cs
- IteratorDescriptor.cs
- RectangleGeometry.cs
- DateTimeOffsetStorage.cs
- ADMembershipUser.cs
- TraceSection.cs
- XmlEncoding.cs
- SqlSupersetValidator.cs
- BamlRecordWriter.cs
- mediaclock.cs
- XslUrlEditor.cs
- FixUp.cs
- RegistrySecurity.cs
- GlyphTypeface.cs
- QueryStringParameter.cs
- FrameworkElementFactoryMarkupObject.cs
- VirtualizingStackPanel.cs
- LineServicesRun.cs
- DragStartedEventArgs.cs
- Pkcs7Recipient.cs
- ProfilePropertyMetadata.cs
- TextTreeExtractElementUndoUnit.cs
- SqlClientFactory.cs
- ButtonBase.cs
- UnmanagedHandle.cs
- NamespaceQuery.cs
- WebPartEditorCancelVerb.cs
- Message.cs
- ClassImporter.cs
- mediaeventshelper.cs
- DataViewManager.cs
- ScriptingSectionGroup.cs
- DataColumnCollection.cs
- ObjectRef.cs
- AssemblyInfo.cs
- ComponentDispatcherThread.cs
- EntityViewGenerator.cs
- MultiAsyncResult.cs
- XmlDocumentSerializer.cs
- StreamMarshaler.cs
- CaseInsensitiveHashCodeProvider.cs
- XmlQueryType.cs
- SimpleMailWebEventProvider.cs
- Stack.cs
- SimpleHandlerBuildProvider.cs
- SafeSystemMetrics.cs
- DesignerResources.cs
- AsyncOperationContext.cs
- ResolvedKeyFrameEntry.cs
- BatchWriter.cs
- XmlSchemaAttributeGroup.cs
- QilValidationVisitor.cs
- RowParagraph.cs
- ResXResourceSet.cs
- Int16.cs
- MenuItemStyle.cs
- WizardSideBarListControlItem.cs
- ProcessInfo.cs
- ExpressionVisitorHelpers.cs
- XmlSchemaSearchPattern.cs
- DebugInfoGenerator.cs
- ClientUtils.cs
- AlphabeticalEnumConverter.cs
- DataFormats.cs
- SafeLocalMemHandle.cs
- UnsafeNativeMethods.cs
- DataGridViewComboBoxCell.cs
- SqlCharStream.cs
- Stopwatch.cs
- EventSchemaTraceListener.cs
- ExpressionPrefixAttribute.cs
- safePerfProviderHandle.cs
- DoneReceivingAsyncResult.cs
- ReadOnlyDataSourceView.cs
- GenericParameterDataContract.cs
- ProtocolInformationReader.cs
- TypeSystem.cs
- SafeNativeMethods.cs
- ProfileGroupSettings.cs
- BrowserTree.cs
- OdbcConnectionStringbuilder.cs
- MenuAutomationPeer.cs
- TextRangeEditLists.cs
- StringInfo.cs
- ProxyAssemblyNotLoadedException.cs
- _AuthenticationState.cs
- TableLayoutStyleCollection.cs
- FixedSOMPage.cs
- StyleCollection.cs
- UnicodeEncoding.cs
- ProgressBarHighlightConverter.cs
- Buffer.cs