Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ChildChangedEventArgs.cs
- MexTcpBindingElement.cs
- updateconfighost.cs
- FileDialogPermission.cs
- objectresult_tresulttype.cs
- CellCreator.cs
- SEHException.cs
- PlatformCulture.cs
- IMembershipProvider.cs
- RenderCapability.cs
- FontNameEditor.cs
- SqlExpander.cs
- GridViewCommandEventArgs.cs
- remotingproxy.cs
- EntityDataSourceDesigner.cs
- ImageMap.cs
- GridViewCellAutomationPeer.cs
- RSAOAEPKeyExchangeFormatter.cs
- InstanceDescriptor.cs
- ConnectionPoolManager.cs
- XmlStringTable.cs
- RSAOAEPKeyExchangeFormatter.cs
- UserControlCodeDomTreeGenerator.cs
- CapabilitiesPattern.cs
- ReachVisualSerializerAsync.cs
- XmlWriterDelegator.cs
- RegisteredHiddenField.cs
- TextCompositionEventArgs.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- Item.cs
- NumericUpDownAcceleration.cs
- PointCollection.cs
- DefaultSettingsSection.cs
- DefaultPrintController.cs
- AssemblyBuilderData.cs
- CalendarTable.cs
- BitSet.cs
- WebUtil.cs
- DefaultParameterValueAttribute.cs
- IgnoreFileBuildProvider.cs
- XmlArrayItemAttributes.cs
- ColorMatrix.cs
- Operators.cs
- BindingContext.cs
- EntityCommandExecutionException.cs
- CompilerCollection.cs
- PropertySourceInfo.cs
- DateTimeOffsetAdapter.cs
- FrameworkElement.cs
- SqlTriggerAttribute.cs
- DataRowView.cs
- UTF32Encoding.cs
- WebContext.cs
- SafeFindHandle.cs
- Invariant.cs
- XmlDataSourceView.cs
- DebugTrace.cs
- ErrorWebPart.cs
- StyleXamlParser.cs
- SqlClientFactory.cs
- XamlToRtfParser.cs
- SamlEvidence.cs
- RightsDocument.cs
- SiteMapPath.cs
- mansign.cs
- ContentDisposition.cs
- Stylesheet.cs
- CopyAction.cs
- CloudCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SuppressMergeCheckAttribute.cs
- FormsAuthenticationUser.cs
- GCHandleCookieTable.cs
- UdpTransportSettings.cs
- XmlCountingReader.cs
- SerializationFieldInfo.cs
- DomNameTable.cs
- ComMethodElementCollection.cs
- DesignerForm.cs
- TextSpanModifier.cs
- ExceptionUtil.cs
- EditingMode.cs
- XamlToRtfParser.cs
- SocketInformation.cs
- Pen.cs
- VisualBrush.cs
- ClientScriptManager.cs
- DocumentPageView.cs
- CalloutQueueItem.cs
- IntSecurity.cs
- ComponentCommands.cs
- SmiEventStream.cs
- brushes.cs
- ObjectAssociationEndMapping.cs
- TypographyProperties.cs
- RelationshipManager.cs
- SoapInteropTypes.cs
- GridViewDeleteEventArgs.cs
- IfElseDesigner.xaml.cs
- ValueTypePropertyReference.cs