Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ErrorFormatter.cs
- InputQueue.cs
- StoreItemCollection.Loader.cs
- FormViewUpdatedEventArgs.cs
- SwitchElementsCollection.cs
- TileModeValidation.cs
- PermissionSet.cs
- DesignerDataTable.cs
- BitmapSizeOptions.cs
- UrlMappingsModule.cs
- DataGridItem.cs
- RowBinding.cs
- BitmapImage.cs
- OdbcConnection.cs
- RuntimeEnvironment.cs
- ArgumentOutOfRangeException.cs
- StrongNameIdentityPermission.cs
- DesignColumn.cs
- Grid.cs
- FixedDocument.cs
- ChannelCacheSettings.cs
- JsonCollectionDataContract.cs
- CellPartitioner.cs
- BaseProcessProtocolHandler.cs
- DataObjectSettingDataEventArgs.cs
- XMLSchema.cs
- ExtensionFile.cs
- GlobalProxySelection.cs
- DateTimeFormatInfo.cs
- QuaternionAnimationBase.cs
- XmlHierarchicalEnumerable.cs
- EtwTrace.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ComboBox.cs
- BufferModeSettings.cs
- BooleanFacetDescriptionElement.cs
- KnownTypeAttribute.cs
- exports.cs
- IfJoinedCondition.cs
- ClientData.cs
- Crc32.cs
- FixedPageAutomationPeer.cs
- TcpPortSharing.cs
- FixedTextPointer.cs
- XappLauncher.cs
- ResourceAssociationType.cs
- TextServicesPropertyRanges.cs
- DataGridPagerStyle.cs
- ObjectHandle.cs
- StylusCaptureWithinProperty.cs
- SchemaType.cs
- DbProviderFactory.cs
- NullableFloatAverageAggregationOperator.cs
- DataSourceXmlElementAttribute.cs
- UidManager.cs
- DesignerAttribute.cs
- GenericsInstances.cs
- DependencyPropertyKey.cs
- DoubleAnimationUsingKeyFrames.cs
- FormsAuthenticationUserCollection.cs
- ResourceWriter.cs
- XmlWrappingReader.cs
- dsa.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- UnmanagedHandle.cs
- PolygonHotSpot.cs
- RemotingAttributes.cs
- DbProviderSpecificTypePropertyAttribute.cs
- WorkflowViewStateService.cs
- SqlComparer.cs
- SqlUDTStorage.cs
- ClientScriptManager.cs
- ConstantProjectedSlot.cs
- SizeAnimationUsingKeyFrames.cs
- SelectorAutomationPeer.cs
- smtppermission.cs
- BindingParameterCollection.cs
- CaseInsensitiveComparer.cs
- SchemaElementDecl.cs
- BaseParagraph.cs
- OracleSqlParser.cs
- Solver.cs
- MessageFilterException.cs
- ProxyHwnd.cs
- HtmlAnchor.cs
- WebResourceAttribute.cs
- Substitution.cs
- InnerItemCollectionView.cs
- Brushes.cs
- CircleHotSpot.cs
- SmtpTransport.cs
- BinaryObjectInfo.cs
- ObjectDisposedException.cs
- VersionedStreamOwner.cs
- HttpRawResponse.cs
- PlatformNotSupportedException.cs
- InputScopeNameConverter.cs
- NegotiationTokenProvider.cs
- SafeThreadHandle.cs
- SocketElement.cs