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
- Light.cs
- NoClickablePointException.cs
- XmlSchemaDocumentation.cs
- MenuCommand.cs
- ObjectMemberMapping.cs
- StoreAnnotationsMap.cs
- Int64AnimationBase.cs
- ClaimTypes.cs
- ExpressionPrefixAttribute.cs
- OracleRowUpdatingEventArgs.cs
- XhtmlTextWriter.cs
- BindingEntityInfo.cs
- D3DImage.cs
- ScrollEventArgs.cs
- InheritanceRules.cs
- ControlCollection.cs
- Char.cs
- ValueChangedEventManager.cs
- PropertyToken.cs
- TraceHandlerErrorFormatter.cs
- ButtonRenderer.cs
- UInt64.cs
- QueryStringParameter.cs
- FixedSOMElement.cs
- Scalars.cs
- SmiContext.cs
- EncodingTable.cs
- ToolStripManager.cs
- RuleCache.cs
- CredentialSelector.cs
- CompModSwitches.cs
- DiscoveryVersion.cs
- WindowsUpDown.cs
- UrlAuthorizationModule.cs
- FormCollection.cs
- figurelength.cs
- serverconfig.cs
- PageOutputColor.cs
- SafeHandles.cs
- RelatedPropertyManager.cs
- HttpRequestCacheValidator.cs
- Membership.cs
- WebPartConnectionsCloseVerb.cs
- DataMemberConverter.cs
- PriorityRange.cs
- DefaultTraceListener.cs
- CommandField.cs
- WebHeaderCollection.cs
- EventSchemaTraceListener.cs
- HyperLink.cs
- RecipientInfo.cs
- SHA1.cs
- ToolStripOverflow.cs
- AbandonedMutexException.cs
- OdbcConnectionString.cs
- WindowsRegion.cs
- ChooseAction.cs
- UIElement3D.cs
- DbDataSourceEnumerator.cs
- FixedSOMTableCell.cs
- TransformProviderWrapper.cs
- ClientSettings.cs
- IriParsingElement.cs
- XmlSerializerAssemblyAttribute.cs
- StructuralCache.cs
- SafeNativeMethods.cs
- StrokeNodeOperations.cs
- EditorPart.cs
- CustomErrorsSectionWrapper.cs
- ScaleTransform.cs
- EventSourceCreationData.cs
- EventListener.cs
- DBCSCodePageEncoding.cs
- SQLDoubleStorage.cs
- InstanceLockedException.cs
- ConfigurationStrings.cs
- HatchBrush.cs
- oledbmetadatacollectionnames.cs
- FontWeights.cs
- PackWebRequest.cs
- PointConverter.cs
- DataGrid.cs
- CompoundFileIOPermission.cs
- FixedSOMGroup.cs
- HebrewNumber.cs
- WebPartCloseVerb.cs
- HealthMonitoringSection.cs
- ConstNode.cs
- ArrayListCollectionBase.cs
- XmlSchemaComplexType.cs
- UiaCoreProviderApi.cs
- HtmlDocument.cs
- UndoManager.cs
- DbConnectionPool.cs
- EmptyControlCollection.cs
- PointLightBase.cs
- NonValidatingSecurityTokenAuthenticator.cs
- odbcmetadatafactory.cs
- RuleSetBrowserDialog.cs
- CodeDefaultValueExpression.cs