Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TaiwanCalendar.cs
- RandomDelaySendsAsyncResult.cs
- RequiredFieldValidator.cs
- WebPartZoneAutoFormat.cs
- DetailsViewInsertEventArgs.cs
- TreeNode.cs
- ControlAdapter.cs
- PolyBezierSegment.cs
- HtmlInputPassword.cs
- RSAPKCS1SignatureDeformatter.cs
- TrackingParameters.cs
- TiffBitmapEncoder.cs
- DataExchangeServiceBinder.cs
- EntityDataSourceDesignerHelper.cs
- HttpCacheVary.cs
- WsatConfiguration.cs
- Permission.cs
- TypeListConverter.cs
- DataStorage.cs
- DebugHandleTracker.cs
- SystemIcmpV6Statistics.cs
- XmlSchemaSimpleTypeUnion.cs
- CompiledAction.cs
- RemoteCryptoRsaServiceProvider.cs
- GridViewCellAutomationPeer.cs
- ContainerFilterService.cs
- TableStyle.cs
- ListViewCancelEventArgs.cs
- XPathCompileException.cs
- SmtpClient.cs
- PictureBoxDesigner.cs
- SchemaImporterExtensionElementCollection.cs
- ModelItemDictionary.cs
- FrameworkContextData.cs
- InstanceHandleReference.cs
- TableLayoutColumnStyleCollection.cs
- MailMessage.cs
- CompositeActivityDesigner.cs
- ToolStripPanelRenderEventArgs.cs
- TextFormatterImp.cs
- Msmq.cs
- StatusBarItem.cs
- XmlAttributeProperties.cs
- WindowsStartMenu.cs
- TimeoutValidationAttribute.cs
- SqlClientPermission.cs
- ChangeNode.cs
- MetadataPropertyCollection.cs
- KernelTypeValidation.cs
- PlaceHolder.cs
- Crc32Helper.cs
- InfoCardClaimCollection.cs
- BamlStream.cs
- WebPartConnectionsCancelEventArgs.cs
- FrameSecurityDescriptor.cs
- DurableMessageDispatchInspector.cs
- PackageRelationship.cs
- RouteData.cs
- RelatedCurrencyManager.cs
- VariableBinder.cs
- SiteMapNode.cs
- InkCanvasInnerCanvas.cs
- WebPartConnectionsEventArgs.cs
- Image.cs
- Color.cs
- XamlStyleSerializer.cs
- ContextDataSource.cs
- UTF7Encoding.cs
- HtmlTernaryTree.cs
- GenericTextProperties.cs
- ActiveDocumentEvent.cs
- HandledEventArgs.cs
- TextElementCollection.cs
- ManagedWndProcTracker.cs
- TextElement.cs
- XmlSchemaIdentityConstraint.cs
- ObjectAnimationBase.cs
- BuildManager.cs
- AlternateView.cs
- WrappedIUnknown.cs
- TransactionTraceIdentifier.cs
- _DomainName.cs
- GenericIdentity.cs
- SessionStateUtil.cs
- EventItfInfo.cs
- GlobalDataBindingHandler.cs
- BamlRecordHelper.cs
- NativeRightsManagementAPIsStructures.cs
- messageonlyhwndwrapper.cs
- SessionPageStatePersister.cs
- MediaPlayer.cs
- CloudCollection.cs
- OrderedDictionaryStateHelper.cs
- ShapeTypeface.cs
- KeyInfo.cs
- Rotation3DKeyFrameCollection.cs
- EntityDataSourceChangedEventArgs.cs
- XamlSerializer.cs
- ColorInterpolationModeValidation.cs
- CompositeCollectionView.cs