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
- DSASignatureDeformatter.cs
- DirectionalLight.cs
- TableParaClient.cs
- ToolStripDropDownMenu.cs
- TranslateTransform3D.cs
- EmbossBitmapEffect.cs
- RewritingValidator.cs
- RecordBuilder.cs
- UpWmlPageAdapter.cs
- WebReferencesBuildProvider.cs
- EffectiveValueEntry.cs
- MethodBody.cs
- FastEncoderWindow.cs
- JsonXmlDataContract.cs
- IndexedEnumerable.cs
- TextTreeTextBlock.cs
- CapabilitiesState.cs
- DocumentPageViewAutomationPeer.cs
- InteropAutomationProvider.cs
- DbDataSourceEnumerator.cs
- AdornerLayer.cs
- FieldToken.cs
- ExternalException.cs
- XmlEncodedRawTextWriter.cs
- AsyncSerializedWorker.cs
- HtmlSelectionListAdapter.cs
- SHA256.cs
- BitmapPalette.cs
- ReadOnlyNameValueCollection.cs
- PointF.cs
- _ScatterGatherBuffers.cs
- DbMetaDataCollectionNames.cs
- SafeProcessHandle.cs
- IResourceProvider.cs
- DataObjectFieldAttribute.cs
- CompilerLocalReference.cs
- CodeFieldReferenceExpression.cs
- WindowsListViewScroll.cs
- MiniAssembly.cs
- ObjectToken.cs
- RegexCharClass.cs
- AbstractDataSvcMapFileLoader.cs
- WebPartConnectionsConfigureVerb.cs
- WebPartEditorApplyVerb.cs
- FontStyleConverter.cs
- LinqDataSourceInsertEventArgs.cs
- OleDbStruct.cs
- OciHandle.cs
- XmlComplianceUtil.cs
- RenderOptions.cs
- XPathSelfQuery.cs
- PassportPrincipal.cs
- StackOverflowException.cs
- CheckBoxStandardAdapter.cs
- xdrvalidator.cs
- ToolTipService.cs
- DefaultParameterValueAttribute.cs
- NavigationProperty.cs
- DescendantQuery.cs
- WinEventTracker.cs
- X500Name.cs
- ContainerUtilities.cs
- DoubleAnimationUsingKeyFrames.cs
- QuotedPrintableStream.cs
- XmlnsDictionary.cs
- PositiveTimeSpanValidator.cs
- TreeBuilderBamlTranslator.cs
- ToolStripSplitButton.cs
- DataListItemEventArgs.cs
- SqlClientWrapperSmiStreamChars.cs
- ControlCachePolicy.cs
- InputScope.cs
- InternalDispatchObject.cs
- ValidatorCompatibilityHelper.cs
- Brush.cs
- DoubleCollectionConverter.cs
- AtlasWeb.Designer.cs
- ClassImporter.cs
- TextFragmentEngine.cs
- XhtmlBasicListAdapter.cs
- ISAPIApplicationHost.cs
- XhtmlBasicTextViewAdapter.cs
- DescendentsWalkerBase.cs
- SRDisplayNameAttribute.cs
- CryptoKeySecurity.cs
- ToolStripDropDownItem.cs
- EntityRecordInfo.cs
- FontStretchConverter.cs
- ConnectionOrientedTransportChannelFactory.cs
- ObjectViewQueryResultData.cs
- SyntaxCheck.cs
- BaseHashHelper.cs
- FontSourceCollection.cs
- ParameterModifier.cs
- GeometryHitTestResult.cs
- AlphaSortedEnumConverter.cs
- PathFigure.cs
- ValidatorCompatibilityHelper.cs
- CookielessData.cs
- EntityContainerEntitySet.cs