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
- PerformanceCounterCategory.cs
- ChineseLunisolarCalendar.cs
- LicenseException.cs
- DiscoveryMessageSequence.cs
- HttpHeaderCollection.cs
- TimeStampChecker.cs
- StylusButtonEventArgs.cs
- SplitContainerDesigner.cs
- PlaceHolder.cs
- AutomationElement.cs
- CqlQuery.cs
- SiteMapNodeCollection.cs
- EdmProperty.cs
- LassoHelper.cs
- DictionaryGlobals.cs
- SvcMapFile.cs
- SimpleMailWebEventProvider.cs
- WpfSharedBamlSchemaContext.cs
- EntityDataSourceWrapperCollection.cs
- HttpCacheVaryByContentEncodings.cs
- DiscreteKeyFrames.cs
- TableLayoutRowStyleCollection.cs
- SqlClientMetaDataCollectionNames.cs
- LogicalExpressionTypeConverter.cs
- ProtocolsConfiguration.cs
- Wrapper.cs
- PipeStream.cs
- Models.cs
- DoubleAnimationUsingKeyFrames.cs
- AutomationPropertyInfo.cs
- ImageCodecInfoPrivate.cs
- AddIn.cs
- Knowncolors.cs
- Metafile.cs
- NativeCppClassAttribute.cs
- RegexGroup.cs
- CmsInterop.cs
- GetPageCompletedEventArgs.cs
- SendSecurityHeaderElement.cs
- CodeTypeParameterCollection.cs
- SHA256.cs
- CodeStatementCollection.cs
- ZipIOExtraFieldPaddingElement.cs
- BaseValidator.cs
- XPathScanner.cs
- SplitContainer.cs
- CustomBindingCollectionElement.cs
- GeometryModel3D.cs
- DependencyPropertyDescriptor.cs
- TypeConverterHelper.cs
- ItemCheckedEvent.cs
- ScrollItemPattern.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ImageClickEventArgs.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- ObjectConverter.cs
- CreateDataSourceDialog.cs
- QueueTransferProtocol.cs
- SafeLocalMemHandle.cs
- DrawingContext.cs
- Decorator.cs
- BindingExpression.cs
- AssemblyInfo.cs
- SoapMessage.cs
- BindMarkupExtensionSerializer.cs
- altserialization.cs
- RegexTree.cs
- XmlSchemaValidationException.cs
- SocketInformation.cs
- DeleteMemberBinder.cs
- XmlResolver.cs
- ProfileEventArgs.cs
- dataobject.cs
- OleDbConnectionInternal.cs
- FontStretchConverter.cs
- IIS7UserPrincipal.cs
- HttpModuleActionCollection.cs
- CodePageEncoding.cs
- TcpStreams.cs
- PeerObject.cs
- DecoderFallback.cs
- DefaultBindingPropertyAttribute.cs
- FillErrorEventArgs.cs
- VirtualDirectoryMappingCollection.cs
- WpfPayload.cs
- PrinterUnitConvert.cs
- CharEnumerator.cs
- TextSpanModifier.cs
- SecurityKeyIdentifierClause.cs
- IconConverter.cs
- AnnotationObservableCollection.cs
- XmlSerializer.cs
- SystemFonts.cs
- ellipse.cs
- LocalizabilityAttribute.cs
- ActionMessageFilterTable.cs
- FunctionImportMapping.cs
- DBCommand.cs
- XmlDocumentType.cs
- ClientRoleProvider.cs