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
- FormClosedEvent.cs
- WindowsButton.cs
- LinqToSqlWrapper.cs
- RadioButtonRenderer.cs
- RegexCompilationInfo.cs
- TransformConverter.cs
- ETagAttribute.cs
- XamlWrappingReader.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TypeDescriptionProvider.cs
- BasicCommandTreeVisitor.cs
- WebPartCloseVerb.cs
- WmlCommandAdapter.cs
- ISAPIRuntime.cs
- RichTextBoxDesigner.cs
- MessageBox.cs
- XmlAnyElementAttributes.cs
- EFAssociationProvider.cs
- PolyLineSegment.cs
- DetailsViewUpdateEventArgs.cs
- Pair.cs
- X509Extension.cs
- ToolStripButton.cs
- EdmFunctions.cs
- TimeSpan.cs
- AddInPipelineAttributes.cs
- SystemParameters.cs
- XmlChildEnumerator.cs
- TableLayoutStyle.cs
- ObservableCollection.cs
- SoapFormatter.cs
- MatchingStyle.cs
- filewebrequest.cs
- DataGridViewRowStateChangedEventArgs.cs
- FormViewPageEventArgs.cs
- MultiViewDesigner.cs
- HyperLinkColumn.cs
- FixedTextBuilder.cs
- TokenBasedSetEnumerator.cs
- MatrixTransform3D.cs
- QueryExpr.cs
- ReadOnlyCollectionBase.cs
- SyndicationDeserializer.cs
- XPathNavigatorReader.cs
- Range.cs
- SqlTopReducer.cs
- Int16KeyFrameCollection.cs
- Matrix3D.cs
- TransformedBitmap.cs
- StringFunctions.cs
- MetadataCollection.cs
- LineProperties.cs
- Identity.cs
- ipaddressinformationcollection.cs
- NameNode.cs
- XmlHelper.cs
- EmptyArray.cs
- CLSCompliantAttribute.cs
- BooleanAnimationBase.cs
- TypefaceCollection.cs
- LoginView.cs
- ScrollPattern.cs
- BinHexEncoder.cs
- RelationshipManager.cs
- TypedElement.cs
- XmlDataSourceView.cs
- ObjectPersistData.cs
- DecimalFormatter.cs
- SerializationObjectManager.cs
- X509WindowsSecurityToken.cs
- ComponentCollection.cs
- IChannel.cs
- ConfigurationLockCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DayRenderEvent.cs
- HttpPostedFile.cs
- ConstraintManager.cs
- ExpressionBuilder.cs
- Claim.cs
- TableCell.cs
- DataGridViewDataErrorEventArgs.cs
- DataObjectSettingDataEventArgs.cs
- Win32Exception.cs
- unsafenativemethodstextservices.cs
- TypeSystemProvider.cs
- UserControlParser.cs
- DbException.cs
- VisualStyleRenderer.cs
- GeneralTransform2DTo3DTo2D.cs
- RemotingSurrogateSelector.cs
- InvalidOleVariantTypeException.cs
- ListViewContainer.cs
- FillErrorEventArgs.cs
- CompositeFontFamily.cs
- NonClientArea.cs
- PnrpPermission.cs
- FindSimilarActivitiesVerb.cs
- DispatcherExceptionEventArgs.cs
- WeakRefEnumerator.cs
- DateTimeValueSerializer.cs