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
- TextDecorations.cs
- XmlEncodedRawTextWriter.cs
- StringBuilder.cs
- SiteMapDataSourceView.cs
- ComponentEditorPage.cs
- DocumentGrid.cs
- UnsafeNativeMethods.cs
- CompositeActivityDesigner.cs
- DataGridRelationshipRow.cs
- MemberInfoSerializationHolder.cs
- StreamInfo.cs
- TransformCollection.cs
- SerTrace.cs
- ProtocolInformationWriter.cs
- Table.cs
- ListViewHitTestInfo.cs
- SkinBuilder.cs
- PlainXmlSerializer.cs
- DataGridViewRowCollection.cs
- FormattedText.cs
- IIS7WorkerRequest.cs
- DockAndAnchorLayout.cs
- WizardPanelChangingEventArgs.cs
- HttpListenerResponse.cs
- GeneratedView.cs
- DropShadowBitmapEffect.cs
- XmlnsPrefixAttribute.cs
- NetworkInformationPermission.cs
- KoreanLunisolarCalendar.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RecognizerStateChangedEventArgs.cs
- EngineSiteSapi.cs
- DesignBindingEditor.cs
- DtdParser.cs
- PropertyMapper.cs
- SqlColumnizer.cs
- HandlerBase.cs
- LongAverageAggregationOperator.cs
- IdentitySection.cs
- PackagingUtilities.cs
- GacUtil.cs
- SizeAnimationUsingKeyFrames.cs
- securestring.cs
- _BufferOffsetSize.cs
- StrongNameIdentityPermission.cs
- DataObjectFieldAttribute.cs
- PropertyChangedEventArgs.cs
- PathSegmentCollection.cs
- AdPostCacheSubstitution.cs
- XmlSchemaParticle.cs
- Part.cs
- ExceptionUtil.cs
- WindowsListBox.cs
- StatusBar.cs
- CodeConditionStatement.cs
- SHA384Managed.cs
- WebPartActionVerb.cs
- IdleTimeoutMonitor.cs
- MethodBuilder.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- TextDecorationCollection.cs
- XamlVector3DCollectionSerializer.cs
- AccessViolationException.cs
- CacheMemory.cs
- RuntimeConfigurationRecord.cs
- CurrentChangingEventManager.cs
- Exception.cs
- AspCompat.cs
- SafeTokenHandle.cs
- ArraySegment.cs
- DataSource.cs
- Light.cs
- PageThemeCodeDomTreeGenerator.cs
- RightsManagementResourceHelper.cs
- CounterSample.cs
- FormViewRow.cs
- SynchronizedReadOnlyCollection.cs
- TreeNodeMouseHoverEvent.cs
- StateMachineWorkflow.cs
- ThicknessAnimationUsingKeyFrames.cs
- OdbcException.cs
- RegexMatchCollection.cs
- CacheDependency.cs
- DBAsyncResult.cs
- RuntimeConfigLKG.cs
- Profiler.cs
- CalendarButton.cs
- GlyphRunDrawing.cs
- HttpDateParse.cs
- WorkflowRuntimeServiceElementCollection.cs
- Sequence.cs
- XmlSchemaComplexType.cs
- SafeFileMappingHandle.cs
- InheritanceContextHelper.cs
- WindowsListViewItem.cs
- Point3DCollectionConverter.cs
- RSACryptoServiceProvider.cs
- DbConnectionPoolIdentity.cs
- HitTestWithGeometryDrawingContextWalker.cs
- DeadCharTextComposition.cs