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
- UrlAuthorizationModule.cs
- SimpleBitVector32.cs
- GuidelineSet.cs
- StandardMenuStripVerb.cs
- XdrBuilder.cs
- InvalidCommandTreeException.cs
- SmiRequestExecutor.cs
- StringFreezingAttribute.cs
- FixedSOMTextRun.cs
- CommonObjectSecurity.cs
- OneToOneMappingSerializer.cs
- SqlCachedBuffer.cs
- XmlSerializableReader.cs
- TextModifier.cs
- DataRelation.cs
- EncryptedKey.cs
- WebPartConnectionsEventArgs.cs
- XmlExceptionHelper.cs
- TabPanel.cs
- MenuItemBindingCollection.cs
- ToolBar.cs
- Clipboard.cs
- DataSourceView.cs
- DropDownHolder.cs
- BitmapEffectGroup.cs
- UserUseLicenseDictionaryLoader.cs
- HttpModuleCollection.cs
- FixedNode.cs
- TextTabProperties.cs
- SqlTransaction.cs
- SystemWebSectionGroup.cs
- CacheSection.cs
- BaseDataList.cs
- Task.cs
- ProgressiveCrcCalculatingStream.cs
- XPathAncestorIterator.cs
- ExpressionEditor.cs
- IPEndPoint.cs
- TreeNodeCollection.cs
- DbSetClause.cs
- SQLInt32.cs
- WsiProfilesElement.cs
- CommonDialog.cs
- ApplicationInfo.cs
- SafeFileMapViewHandle.cs
- XmlNavigatorStack.cs
- Line.cs
- SchemaNamespaceManager.cs
- SnapLine.cs
- MissingMemberException.cs
- FunctionQuery.cs
- OdbcEnvironment.cs
- PrintDialog.cs
- SubpageParagraph.cs
- ImageDrawing.cs
- SqlParameterCollection.cs
- SafeReadContext.cs
- DataGrid.cs
- SynchronizationLockException.cs
- ContentValidator.cs
- PixelFormat.cs
- TypeUtils.cs
- CodePrimitiveExpression.cs
- ChannelSettingsElement.cs
- DataGridViewDesigner.cs
- GroupedContextMenuStrip.cs
- CmsUtils.cs
- Msec.cs
- Dynamic.cs
- HtmlTableRow.cs
- PageAsyncTask.cs
- IProvider.cs
- DbParameterCollectionHelper.cs
- HostingEnvironmentWrapper.cs
- ContractComponent.cs
- ViewBox.cs
- DesignerGenericWebPart.cs
- ProtocolsConfiguration.cs
- ProviderUtil.cs
- XsdDuration.cs
- EdmConstants.cs
- SortFieldComparer.cs
- ConfigurationConverterBase.cs
- ExtractorMetadata.cs
- CoreSwitches.cs
- VirtualizingStackPanel.cs
- StickyNote.cs
- Adorner.cs
- Win32KeyboardDevice.cs
- CodeAttachEventStatement.cs
- MaskInputRejectedEventArgs.cs
- BamlResourceDeserializer.cs
- SessionState.cs
- PersonalizationStateInfoCollection.cs
- DataBinding.cs
- SiteMap.cs
- CompositeFontInfo.cs
- CaseCqlBlock.cs
- Win32.cs
- LineServicesCallbacks.cs