Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- RowCache.cs
- DesignerTransactionCloseEvent.cs
- TextWriterEngine.cs
- BinaryConverter.cs
- ReversePositionQuery.cs
- TrustManagerMoreInformation.cs
- StylusDevice.cs
- SqlBuffer.cs
- SetterBaseCollection.cs
- Zone.cs
- OAVariantLib.cs
- SqlDataSourceSelectingEventArgs.cs
- TableLayoutRowStyleCollection.cs
- BlurBitmapEffect.cs
- _ListenerResponseStream.cs
- AsyncPostBackTrigger.cs
- PenContexts.cs
- SignatureConfirmationElement.cs
- LookupNode.cs
- IPAddress.cs
- FixedHyperLink.cs
- XamlPoint3DCollectionSerializer.cs
- LZCodec.cs
- PersonalizationAdministration.cs
- MenuItemAutomationPeer.cs
- BooleanAnimationUsingKeyFrames.cs
- MailWebEventProvider.cs
- ModelItemDictionaryImpl.cs
- DebugTrace.cs
- selecteditemcollection.cs
- FastEncoderWindow.cs
- QuaternionKeyFrameCollection.cs
- ConfigurationPermission.cs
- LeaseManager.cs
- AddressingVersion.cs
- ReflectionUtil.cs
- PageThemeBuildProvider.cs
- DetailsViewUpdatedEventArgs.cs
- MultilineStringConverter.cs
- XPathNavigatorReader.cs
- EditingMode.cs
- AssemblyBuilderData.cs
- Panel.cs
- Span.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataFieldEditor.cs
- GeometryConverter.cs
- ChunkedMemoryStream.cs
- CurrencyWrapper.cs
- Trustee.cs
- ComponentEditorForm.cs
- ChannelServices.cs
- SystemGatewayIPAddressInformation.cs
- StubHelpers.cs
- ByteRangeDownloader.cs
- QueryCacheManager.cs
- Query.cs
- ExpressionBindings.cs
- Win32.cs
- Transform.cs
- regiisutil.cs
- CompositeControl.cs
- DebugView.cs
- MenuItemBindingCollection.cs
- SamlSubject.cs
- DiscoveryUtility.cs
- AspNetPartialTrustHelpers.cs
- Utility.cs
- PackageRelationship.cs
- SendActivityValidator.cs
- jithelpers.cs
- Message.cs
- SeverityFilter.cs
- FamilyTypefaceCollection.cs
- SecureUICommand.cs
- TypeConverterAttribute.cs
- DateTimeConverter2.cs
- ACL.cs
- OutOfMemoryException.cs
- WebBrowserNavigatingEventHandler.cs
- ComboBoxRenderer.cs
- Command.cs
- StorageSetMapping.cs
- Application.cs
- PropertyInformationCollection.cs
- AmbientLight.cs
- SuppressMessageAttribute.cs
- SurrogateDataContract.cs
- _KerberosClient.cs
- ObjectAssociationEndMapping.cs
- BitmapEffectDrawingContextWalker.cs
- ObjectReaderCompiler.cs
- SecurityDocument.cs
- CheckBox.cs
- SystemInfo.cs
- ZoneLinkButton.cs
- MailMessage.cs
- UserControlParser.cs
- DataGridViewCellPaintingEventArgs.cs
- ToolStripPanelCell.cs