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
- TableItemPatternIdentifiers.cs
- PartialArray.cs
- HttpCapabilitiesEvaluator.cs
- ResourceDictionary.cs
- ScopelessEnumAttribute.cs
- Configuration.cs
- DocumentViewer.cs
- TextElement.cs
- DispatchWrapper.cs
- SchemaCollectionCompiler.cs
- SqlDataSourceView.cs
- CompositeScriptReference.cs
- SqlDataReaderSmi.cs
- UserControlBuildProvider.cs
- SecurityNegotiationException.cs
- HMACSHA256.cs
- DataGridCommandEventArgs.cs
- MemoryStream.cs
- CuspData.cs
- LinqMaximalSubtreeNominator.cs
- CounterSample.cs
- Polyline.cs
- HotSpotCollection.cs
- Function.cs
- TextAdaptor.cs
- WebPartsPersonalizationAuthorization.cs
- WebHttpBinding.cs
- WebBrowserBase.cs
- ServiceHostingEnvironment.cs
- BlurEffect.cs
- TagPrefixCollection.cs
- OutOfProcStateClientManager.cs
- InternalCache.cs
- ProxyAttribute.cs
- ToolStripPanelRow.cs
- webeventbuffer.cs
- ConfigPathUtility.cs
- WebHostUnsafeNativeMethods.cs
- LocalizedNameDescriptionPair.cs
- WindowsListBox.cs
- ConnectionOrientedTransportManager.cs
- BaseCodePageEncoding.cs
- prompt.cs
- TextCharacters.cs
- UpdateTranslator.cs
- DirectoryInfo.cs
- BlurBitmapEffect.cs
- UniqueContractNameValidationBehavior.cs
- updatecommandorderer.cs
- ScriptResourceHandler.cs
- SplitterCancelEvent.cs
- Stack.cs
- TextRangeSerialization.cs
- ValueQuery.cs
- PixelFormatConverter.cs
- Calendar.cs
- DataGridDesigner.cs
- UIElement3D.cs
- TemplateContent.cs
- WebPartAuthorizationEventArgs.cs
- EventDescriptor.cs
- ReadOnlyCollection.cs
- TdsParserSessionPool.cs
- ParameterEditorUserControl.cs
- IsolatedStorage.cs
- DesignTimeData.cs
- FullTrustAssemblyCollection.cs
- ApplicationGesture.cs
- RecognizedAudio.cs
- InstanceOwnerQueryResult.cs
- StylusTip.cs
- MailMessage.cs
- MultiByteCodec.cs
- PerformanceCounterPermissionEntryCollection.cs
- Wizard.cs
- CodeVariableDeclarationStatement.cs
- _SSPISessionCache.cs
- SecurityRuntime.cs
- MeshGeometry3D.cs
- ImpersonateTokenRef.cs
- ValueTypeFieldReference.cs
- Preprocessor.cs
- WindowsRichEdit.cs
- GuidelineCollection.cs
- DrawListViewSubItemEventArgs.cs
- BulletedList.cs
- TypeNameParser.cs
- TaskSchedulerException.cs
- URLMembershipCondition.cs
- XamlTreeBuilder.cs
- ManualResetEvent.cs
- DataListItemEventArgs.cs
- FullTextLine.cs
- Unit.cs
- DesignerCapabilities.cs
- OleDbRowUpdatedEvent.cs
- DataRelationPropertyDescriptor.cs
- _DisconnectOverlappedAsyncResult.cs
- RSAOAEPKeyExchangeFormatter.cs
- BamlRecords.cs