Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / PreProcessInputEventArgs.cs / 1305600 / 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
- ValueTable.cs
- DesignTimeData.cs
- UseAttributeSetsAction.cs
- TypeFieldSchema.cs
- WebRequestModulesSection.cs
- UxThemeWrapper.cs
- PriorityQueue.cs
- RequestQueue.cs
- OdbcConnection.cs
- EpmHelper.cs
- PropertyDescriptors.cs
- _Semaphore.cs
- NetworkCredential.cs
- ResolveCompletedEventArgs.cs
- MinimizableAttributeTypeConverter.cs
- _ConnectOverlappedAsyncResult.cs
- TextDataBindingHandler.cs
- SqlResolver.cs
- Helpers.cs
- XmlSchemaParticle.cs
- TextTreeTextElementNode.cs
- BinHexDecoder.cs
- CleanUpVirtualizedItemEventArgs.cs
- DataGridClipboardCellContent.cs
- CorrelationTokenTypeConvertor.cs
- MsdtcClusterUtils.cs
- DataFormats.cs
- CharEnumerator.cs
- DataGridLength.cs
- HtmlTable.cs
- StreamWithDictionary.cs
- AuthorizationSection.cs
- Logging.cs
- KeyboardEventArgs.cs
- rsa.cs
- Baml2006KeyRecord.cs
- BamlVersionHeader.cs
- DataBoundControlAdapter.cs
- RowUpdatingEventArgs.cs
- EventLogPermissionAttribute.cs
- DataGridPagerStyle.cs
- SecurityIdentifierConverter.cs
- SchemaTypeEmitter.cs
- _Connection.cs
- FixedSOMTable.cs
- CompositeKey.cs
- DataBinder.cs
- StorageAssociationSetMapping.cs
- MetadataItem_Static.cs
- WindowsComboBox.cs
- JulianCalendar.cs
- TextServicesHost.cs
- DashStyles.cs
- ExpressionLexer.cs
- InvariantComparer.cs
- SkewTransform.cs
- cookie.cs
- SafeArrayTypeMismatchException.cs
- FrameworkElementAutomationPeer.cs
- TargetException.cs
- BamlWriter.cs
- StyleSheetDesigner.cs
- PerformanceCounterManager.cs
- ConnectionConsumerAttribute.cs
- WorkflowTerminatedException.cs
- GroupBox.cs
- xmlfixedPageInfo.cs
- _LoggingObject.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- OleDbFactory.cs
- InstanceHandleConflictException.cs
- ManagedIStream.cs
- BrowserInteropHelper.cs
- TextChangedEventArgs.cs
- ParseChildrenAsPropertiesAttribute.cs
- WebBrowserEvent.cs
- TextEditorCopyPaste.cs
- JoinTreeSlot.cs
- CompareValidator.cs
- FlatButtonAppearance.cs
- Decimal.cs
- PolyBezierSegmentFigureLogic.cs
- CharacterMetricsDictionary.cs
- XmlTextReader.cs
- ExpressionBuilderCollection.cs
- ImageConverter.cs
- ToolStripMenuItemCodeDomSerializer.cs
- MatrixKeyFrameCollection.cs
- TemplateContentLoader.cs
- TimeSpanMinutesConverter.cs
- TimeSpanStorage.cs
- XmlBinaryReader.cs
- CharacterBuffer.cs
- NameObjectCollectionBase.cs
- PropertyDescriptorComparer.cs
- ReadOnlyDictionary.cs
- UnaryNode.cs
- RoleService.cs
- PropertyCollection.cs
- UrlPath.cs