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
- CodeConditionStatement.cs
- WindowsScroll.cs
- OleDbConnectionFactory.cs
- SchemaImporter.cs
- DateTimeSerializationSection.cs
- MenuScrollingVisibilityConverter.cs
- EventLogPermission.cs
- tabpagecollectioneditor.cs
- WebPartRestoreVerb.cs
- XamlGridLengthSerializer.cs
- ViewPort3D.cs
- TabControl.cs
- SoapHttpTransportImporter.cs
- ListViewDataItem.cs
- EventSetter.cs
- ColorBuilder.cs
- DashStyles.cs
- DbMetaDataFactory.cs
- DbgCompiler.cs
- XmlReflectionImporter.cs
- UpDownBase.cs
- DataGridViewCellStyleConverter.cs
- TdsValueSetter.cs
- DesignerActionListCollection.cs
- SharedMemory.cs
- DbMetaDataCollectionNames.cs
- EntityRecordInfo.cs
- DataMisalignedException.cs
- AuthenticationService.cs
- Rect3D.cs
- PropertyEmitter.cs
- LineGeometry.cs
- QueryCacheEntry.cs
- XhtmlBasicControlAdapter.cs
- HexParser.cs
- XPathChildIterator.cs
- UntypedNullExpression.cs
- WebBrowserContainer.cs
- DataListAutoFormat.cs
- TableRowCollection.cs
- Bitmap.cs
- SendingRequestEventArgs.cs
- ResolveMatchesMessageCD1.cs
- BmpBitmapEncoder.cs
- DataSourceUtil.cs
- OutputCacheProfileCollection.cs
- XmlException.cs
- LogicalTreeHelper.cs
- TransformationRules.cs
- CustomErrorsSection.cs
- XmlChoiceIdentifierAttribute.cs
- BitmapDecoder.cs
- ExtendedPropertyInfo.cs
- OptimalTextSource.cs
- SecurityException.cs
- DataGridViewColumnHeaderCell.cs
- ScrollBar.cs
- XamlClipboardData.cs
- CheckBoxStandardAdapter.cs
- HttpCachePolicyElement.cs
- Style.cs
- GridViewEditEventArgs.cs
- LoadedOrUnloadedOperation.cs
- ScriptControl.cs
- XmlSchemaAny.cs
- CachedFontFamily.cs
- DesignerLoader.cs
- SystemWebSectionGroup.cs
- TypeForwardedToAttribute.cs
- TileBrush.cs
- DataSourceHelper.cs
- VisualStateChangedEventArgs.cs
- PathFigureCollectionValueSerializer.cs
- SessionStateContainer.cs
- ProtocolState.cs
- DataGridItemCollection.cs
- DbConnectionHelper.cs
- ProcessModuleCollection.cs
- DbParameterCollectionHelper.cs
- SeekableMessageNavigator.cs
- ThemeDirectoryCompiler.cs
- MgmtConfigurationRecord.cs
- StringExpressionSet.cs
- SetStoryboardSpeedRatio.cs
- ScrollItemProviderWrapper.cs
- ProjectionRewriter.cs
- base64Transforms.cs
- VisualStyleInformation.cs
- EventData.cs
- PanelContainerDesigner.cs
- GifBitmapEncoder.cs
- EllipseGeometry.cs
- TextHidden.cs
- BamlLocalizer.cs
- LocalValueEnumerator.cs
- ProfilePropertySettings.cs
- PipelineModuleStepContainer.cs
- GB18030Encoding.cs
- XmlDocumentFragment.cs
- BinaryObjectReader.cs