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 / KeyboardEventArgs.cs / 1 / KeyboardEventArgs.cs
using System; namespace System.Windows.Input { ////// The KeyboardEventArgs class provides access to the logical /// pointer device for all derived event args. /// ///public class KeyboardEventArgs : InputEventArgs { /// /// Initializes a new instance of the KeyboardEventArgs class. /// /// /// The logical keyboard device associated with this event. /// /// /// The time when the input occured. /// public KeyboardEventArgs(KeyboardDevice keyboard, int timestamp) : base(keyboard, timestamp) { } ////// Read-only access to the logical keyboard device associated with /// this event. /// public KeyboardDevice KeyboardDevice { get {return (KeyboardDevice) this.Device;} } ////// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// ///protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { KeyboardEventHandler handler = (KeyboardEventHandler) genericHandler; handler(genericTarget, this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Windows.Input { /// /// The KeyboardEventArgs class provides access to the logical /// pointer device for all derived event args. /// ///public class KeyboardEventArgs : InputEventArgs { /// /// Initializes a new instance of the KeyboardEventArgs class. /// /// /// The logical keyboard device associated with this event. /// /// /// The time when the input occured. /// public KeyboardEventArgs(KeyboardDevice keyboard, int timestamp) : base(keyboard, timestamp) { } ////// Read-only access to the logical keyboard device associated with /// this event. /// public KeyboardDevice KeyboardDevice { get {return (KeyboardDevice) this.Device;} } ////// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// ///protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { KeyboardEventHandler handler = (KeyboardEventHandler) genericHandler; handler(genericTarget, this); } } } // 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
- HtmlInputSubmit.cs
- NonParentingControl.cs
- ListSortDescriptionCollection.cs
- TableItemStyle.cs
- CancelEventArgs.cs
- COM2EnumConverter.cs
- BindingMAnagerBase.cs
- EmbeddedMailObject.cs
- CollectionTypeElement.cs
- MetadataCacheItem.cs
- StreamingContext.cs
- ReferenceSchema.cs
- DebugInfoExpression.cs
- JpegBitmapEncoder.cs
- SchemaImporterExtensionsSection.cs
- ReadOnlyPropertyMetadata.cs
- DbModificationCommandTree.cs
- WindowsTokenRoleProvider.cs
- ResXDataNode.cs
- TraceListener.cs
- SessionIDManager.cs
- InstalledVoice.cs
- _LoggingObject.cs
- StatusBarPanelClickEvent.cs
- HybridObjectCache.cs
- UdpDuplexChannel.cs
- HitTestParameters.cs
- ListDesigner.cs
- ContentPlaceHolder.cs
- ReplacementText.cs
- SocketElement.cs
- StateRuntime.cs
- CSharpCodeProvider.cs
- InternalConfigEventArgs.cs
- DataReaderContainer.cs
- Msec.cs
- Zone.cs
- EncryptedPackageFilter.cs
- Crypto.cs
- RadioButtonStandardAdapter.cs
- EntityKeyElement.cs
- ValueOfAction.cs
- EdmType.cs
- NetStream.cs
- SoapMessage.cs
- MdImport.cs
- CanExecuteRoutedEventArgs.cs
- ConfigUtil.cs
- ClientScriptManager.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- GridViewPageEventArgs.cs
- HtmlTableCell.cs
- WindowsGraphicsCacheManager.cs
- RowBinding.cs
- RunInstallerAttribute.cs
- DataReceivedEventArgs.cs
- TypeUtils.cs
- StylusCollection.cs
- GlyphElement.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- PropertyValueChangedEvent.cs
- DataGridViewLayoutData.cs
- UserUseLicenseDictionaryLoader.cs
- SmtpTransport.cs
- CacheSection.cs
- DESCryptoServiceProvider.cs
- XmlSchemaAll.cs
- DataGridLinkButton.cs
- ValidatorUtils.cs
- NetworkInformationPermission.cs
- TextReader.cs
- TdsRecordBufferSetter.cs
- CacheOutputQuery.cs
- WorkerRequest.cs
- WebPartVerbsEventArgs.cs
- EnterpriseServicesHelper.cs
- DiagnosticTrace.cs
- ValueSerializerAttribute.cs
- UnsafeNativeMethods.cs
- HtmlGenericControl.cs
- FilterableAttribute.cs
- AsymmetricKeyExchangeFormatter.cs
- SystemIPInterfaceStatistics.cs
- IsolatedStorageFileStream.cs
- MetadataArtifactLoaderCompositeResource.cs
- WinFormsSecurity.cs
- ComplusTypeValidator.cs
- TextEndOfLine.cs
- LayoutEngine.cs
- FontStretchConverter.cs
- IndexedWhereQueryOperator.cs
- TreeBuilder.cs
- ModuleBuilderData.cs
- ColumnHeaderConverter.cs
- WebPartUserCapability.cs
- ListBoxChrome.cs
- TreeView.cs
- CompatibleComparer.cs
- ValidatingCollection.cs
- Nullable.cs