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
- PolicyImporterElement.cs
- XmlSerializerVersionAttribute.cs
- ErasingStroke.cs
- LinqDataSourceStatusEventArgs.cs
- EntityDataSourceConfigureObjectContext.cs
- RadioButtonPopupAdapter.cs
- RadioButtonBaseAdapter.cs
- HierarchicalDataSourceControl.cs
- RuntimeResourceSet.cs
- StateChangeEvent.cs
- webproxy.cs
- InfoCardConstants.cs
- EntityClassGenerator.cs
- ListItemParagraph.cs
- ScrollableControlDesigner.cs
- safesecurityhelperavalon.cs
- SpecialFolderEnumConverter.cs
- ParagraphResult.cs
- LinearGradientBrush.cs
- ValueType.cs
- DataViewManagerListItemTypeDescriptor.cs
- HostExecutionContextManager.cs
- JsonDeserializer.cs
- VirtualPath.cs
- ConnectionProviderAttribute.cs
- ThumbButtonInfo.cs
- ActivityCodeDomSerializer.cs
- GiveFeedbackEvent.cs
- UriTemplateClientFormatter.cs
- ApplicationInterop.cs
- GeometryHitTestResult.cs
- SoapSchemaExporter.cs
- FormClosingEvent.cs
- TableCellCollection.cs
- cookieexception.cs
- ReadOnlyNameValueCollection.cs
- ColorTransform.cs
- JpegBitmapEncoder.cs
- BuiltInExpr.cs
- CodePageEncoding.cs
- RawStylusInput.cs
- PropertyGeneratedEventArgs.cs
- CorrelationKey.cs
- TagMapCollection.cs
- TriggerBase.cs
- TlsnegoTokenAuthenticator.cs
- BindingSourceDesigner.cs
- FamilyMapCollection.cs
- ListControl.cs
- PackWebResponse.cs
- StrokeNodeData.cs
- XPathArrayIterator.cs
- ListViewEditEventArgs.cs
- DelayedRegex.cs
- XDeferredAxisSource.cs
- DefaultValidator.cs
- ContractTypeNameCollection.cs
- InkSerializer.cs
- XmlTextReader.cs
- BitmapEffectGeneralTransform.cs
- DetailsViewInsertEventArgs.cs
- MoveSizeWinEventHandler.cs
- SiteMap.cs
- PinnedBufferMemoryStream.cs
- SafeFileMappingHandle.cs
- ModelPerspective.cs
- DbConnectionPoolOptions.cs
- SymmetricKeyWrap.cs
- XmlSubtreeReader.cs
- Point4DConverter.cs
- QueryPrefixOp.cs
- OdbcPermission.cs
- TextAnchor.cs
- NavigationService.cs
- TriggerAction.cs
- MessageAction.cs
- ForwardPositionQuery.cs
- IODescriptionAttribute.cs
- FilteredDataSetHelper.cs
- DataBindingExpressionBuilder.cs
- DataDocumentXPathNavigator.cs
- AssemblySettingAttributes.cs
- WinFormsSecurity.cs
- EpmSourceTree.cs
- HttpCacheParams.cs
- QilTernary.cs
- TextBox.cs
- SiteMapDataSourceDesigner.cs
- XmlSchemaObjectTable.cs
- PropertyFilter.cs
- CaseKeyBox.xaml.cs
- CopyOnWriteList.cs
- validationstate.cs
- DataStreamFromComStream.cs
- TemplateColumn.cs
- NameScope.cs
- TemplateControlParser.cs
- WebBrowserPermission.cs
- ParseElementCollection.cs
- RequestQueryProcessor.cs