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
- PublisherMembershipCondition.cs
- ProcessingInstructionAction.cs
- DeploymentSection.cs
- SkipStoryboardToFill.cs
- X509Utils.cs
- ComponentTray.cs
- SQlBooleanStorage.cs
- RestHandlerFactory.cs
- SamlAttribute.cs
- ScrollViewer.cs
- PeerApplication.cs
- EventMappingSettings.cs
- TraceHwndHost.cs
- ComponentSerializationService.cs
- TypedTableGenerator.cs
- FormConverter.cs
- CommandSet.cs
- ImageButton.cs
- IteratorDescriptor.cs
- Span.cs
- entityreference_tresulttype.cs
- ColorTranslator.cs
- MarginsConverter.cs
- PreProcessor.cs
- ItemsChangedEventArgs.cs
- SafeUserTokenHandle.cs
- Membership.cs
- FixedHighlight.cs
- WebBrowserContainer.cs
- HighlightVisual.cs
- KeyProperty.cs
- TypeValidationEventArgs.cs
- InputReferenceExpression.cs
- TextLine.cs
- MessageDecoder.cs
- ByteStreamGeometryContext.cs
- sortedlist.cs
- StringArrayConverter.cs
- QilPatternVisitor.cs
- ComponentConverter.cs
- DataGridColumnStyleMappingNameEditor.cs
- WorkflowItemPresenter.cs
- WindowAutomationPeer.cs
- Misc.cs
- ViewKeyConstraint.cs
- Comparer.cs
- XhtmlBasicPageAdapter.cs
- ContextMarshalException.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- CompositeDataBoundControl.cs
- MenuItemStyle.cs
- Int32AnimationUsingKeyFrames.cs
- DomNameTable.cs
- SerialPort.cs
- MonikerBuilder.cs
- WebBrowser.cs
- SoundPlayerAction.cs
- PerformanceCountersElement.cs
- VisualStateManager.cs
- ModulesEntry.cs
- ButtonPopupAdapter.cs
- EntityDataSource.cs
- LineBreakRecord.cs
- EntityClientCacheKey.cs
- GroupLabel.cs
- SqlUtil.cs
- EntityDataSourceViewSchema.cs
- SafeJobHandle.cs
- RelationshipSet.cs
- DictionaryEntry.cs
- RSAProtectedConfigurationProvider.cs
- WorkflowOperationBehavior.cs
- FileChangeNotifier.cs
- Parsers.cs
- UnsignedPublishLicense.cs
- TableChangeProcessor.cs
- ProfileInfo.cs
- InkSerializer.cs
- TableProviderWrapper.cs
- ADConnectionHelper.cs
- SystemMulticastIPAddressInformation.cs
- SrgsGrammarCompiler.cs
- HttpCapabilitiesEvaluator.cs
- DocumentOrderComparer.cs
- mansign.cs
- ProjectionQueryOptionExpression.cs
- CodeSubDirectoriesCollection.cs
- XmlRootAttribute.cs
- ZipIOLocalFileBlock.cs
- ProviderCollection.cs
- PageThemeCodeDomTreeGenerator.cs
- FormatException.cs
- AutomationEventArgs.cs
- PingReply.cs
- RestClientProxyHandler.cs
- CacheAxisQuery.cs
- TraceXPathNavigator.cs
- DesignerForm.cs
- OleDbReferenceCollection.cs
- WebBrowser.cs