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
- Image.cs
- BrowserCapabilitiesFactoryBase.cs
- ButtonPopupAdapter.cs
- CompilerTypeWithParams.cs
- SByte.cs
- AsymmetricAlgorithm.cs
- SqlDeflator.cs
- TextContainerChangedEventArgs.cs
- DependencyPropertyConverter.cs
- BufferModesCollection.cs
- BindingsSection.cs
- UInt64Storage.cs
- BindingNavigator.cs
- WebReferencesBuildProvider.cs
- MultilineStringConverter.cs
- DecoderFallback.cs
- EndpointFilterProvider.cs
- SkipStoryboardToFill.cs
- SendingRequestEventArgs.cs
- CreateUserWizardStep.cs
- EndpointDiscoveryMetadataCD1.cs
- RawUIStateInputReport.cs
- DataKey.cs
- TraceRecords.cs
- NestedContainer.cs
- Enum.cs
- ValuePatternIdentifiers.cs
- OdbcErrorCollection.cs
- DesignerSerializationVisibilityAttribute.cs
- SplineKeyFrames.cs
- GetBrowserTokenRequest.cs
- XmlSchemaNotation.cs
- SBCSCodePageEncoding.cs
- ImmutableDispatchRuntime.cs
- FlowDocumentPaginator.cs
- ProxyGenerationError.cs
- WebPartUtil.cs
- InstanceKeyNotReadyException.cs
- Trigger.cs
- RadioButtonList.cs
- SafeNativeMethodsMilCoreApi.cs
- FormClosingEvent.cs
- ViewLoader.cs
- DataBoundControlAdapter.cs
- DataSourceCache.cs
- HtmlElementCollection.cs
- ExpressionNormalizer.cs
- QuadTree.cs
- Screen.cs
- SettingsSection.cs
- BrowserDefinition.cs
- HyperLinkField.cs
- TypeDelegator.cs
- MediaPlayerState.cs
- _StreamFramer.cs
- DBCSCodePageEncoding.cs
- HyperLinkColumn.cs
- HttpWebRequest.cs
- Pair.cs
- ExceptionTranslationTable.cs
- SqlSelectStatement.cs
- WindowsToolbar.cs
- xmlsaver.cs
- FileSecurity.cs
- XmlText.cs
- ZipIOExtraFieldPaddingElement.cs
- DbgCompiler.cs
- SecurityResources.cs
- Set.cs
- SystemWebSectionGroup.cs
- QilVisitor.cs
- BuildManagerHost.cs
- TabControl.cs
- PeerSecurityHelpers.cs
- SerializerProvider.cs
- BitmapDecoder.cs
- ConfigXmlComment.cs
- XmlNodeList.cs
- SafeFileMappingHandle.cs
- CategoryAttribute.cs
- AliasGenerator.cs
- EllipticalNodeOperations.cs
- ValidationManager.cs
- MemberAccessException.cs
- UserControlAutomationPeer.cs
- PropertyInformation.cs
- IDataContractSurrogate.cs
- RuleSetBrowserDialog.cs
- PropertyTab.cs
- ButtonFlatAdapter.cs
- QilInvokeLateBound.cs
- DataSourceHelper.cs
- XmlBindingWorker.cs
- FixedSOMImage.cs
- SqlCacheDependencyDatabase.cs
- AccessText.cs
- ArgumentDesigner.xaml.cs
- LongPath.cs
- UpdatePanelTrigger.cs
- CatalogZoneBase.cs