Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- MULTI_QI.cs
- DocumentPageTextView.cs
- TagMapCollection.cs
- DefaultValueAttribute.cs
- XPathLexer.cs
- Parameter.cs
- PenLineJoinValidation.cs
- AnonymousIdentificationModule.cs
- HttpModuleCollection.cs
- PropertyStore.cs
- TabItem.cs
- PathGeometry.cs
- HtmlTableCell.cs
- XmlSortKey.cs
- WebPartManager.cs
- CodeGenerator.cs
- ContentType.cs
- InstanceDataCollection.cs
- TypeResolvingOptions.cs
- TransactionProtocol.cs
- TraceRecords.cs
- TextElementCollection.cs
- Wizard.cs
- WebPartCatalogCloseVerb.cs
- XPathNodeHelper.cs
- AddInProcess.cs
- KeysConverter.cs
- PolicyDesigner.cs
- XMLDiffLoader.cs
- HtmlInputControl.cs
- RequestBringIntoViewEventArgs.cs
- XsdValidatingReader.cs
- PopupControlService.cs
- TreeNodeCollectionEditorDialog.cs
- DesignTimeXamlWriter.cs
- PrincipalPermission.cs
- BindingExpressionUncommonField.cs
- ElapsedEventArgs.cs
- ColorAnimationBase.cs
- DataGridRelationshipRow.cs
- TextBoxView.cs
- VisualCollection.cs
- XmlNamedNodeMap.cs
- OrthographicCamera.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- HtmlShimManager.cs
- TableFieldsEditor.cs
- EmbeddedMailObject.cs
- FormViewCommandEventArgs.cs
- ToolStripCodeDomSerializer.cs
- PenContexts.cs
- RemotingHelper.cs
- DocumentPageView.cs
- ArithmeticException.cs
- Semaphore.cs
- Utils.cs
- NonDualMessageSecurityOverHttp.cs
- SimpleMailWebEventProvider.cs
- PersistenceTypeAttribute.cs
- OleDbConnectionFactory.cs
- ObjectDataProvider.cs
- ErrorProvider.cs
- InputReportEventArgs.cs
- SqlInfoMessageEvent.cs
- CommandSet.cs
- ExtendedProtectionPolicy.cs
- SignatureHelper.cs
- LoginViewDesigner.cs
- SignedInfo.cs
- StateMachineSubscription.cs
- ServiceOperation.cs
- Vector3DIndependentAnimationStorage.cs
- TypeDescriptor.cs
- CollectionViewGroupInternal.cs
- BaseUriHelper.cs
- GcHandle.cs
- ListBoxItemWrapperAutomationPeer.cs
- XmlNode.cs
- PermissionSet.cs
- DeleteStoreRequest.cs
- SqlCommandBuilder.cs
- BitSet.cs
- DataTableCollection.cs
- ClientProtocol.cs
- QilScopedVisitor.cs
- ManualResetEvent.cs
- CallSiteBinder.cs
- FixedStringLookup.cs
- HttpInputStream.cs
- ToolStripPanel.cs
- DataGridHyperlinkColumn.cs
- RestHandler.cs
- WsiProfilesElement.cs
- SiteMembershipCondition.cs
- Dictionary.cs
- C14NUtil.cs
- ExtensionDataObject.cs
- listviewsubitemcollectioneditor.cs
- DefaultSerializationProviderAttribute.cs
- XmlArrayItemAttributes.cs