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
- Function.cs
- KeyGesture.cs
- DataFormats.cs
- QilDataSource.cs
- ReachIDocumentPaginatorSerializer.cs
- CodeDelegateCreateExpression.cs
- DrawingCollection.cs
- TabItem.cs
- SaveFileDialog.cs
- PropertyFilterAttribute.cs
- LayoutEngine.cs
- ParagraphResult.cs
- DataKey.cs
- Attribute.cs
- WindowsGraphicsCacheManager.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- DataGridViewIntLinkedList.cs
- TemplateKey.cs
- ReadContentAsBinaryHelper.cs
- ProtocolViolationException.cs
- ToolStripPanel.cs
- Utils.cs
- MULTI_QI.cs
- WorkflowWebService.cs
- DateTimeFormatInfoScanner.cs
- BeginCreateSecurityTokenRequest.cs
- TrackingRecord.cs
- SourceFilter.cs
- Content.cs
- AddressAccessDeniedException.cs
- ConnectionConsumerAttribute.cs
- URLIdentityPermission.cs
- DesignerVerbCollection.cs
- SoapSchemaMember.cs
- TimelineClockCollection.cs
- LineServicesRun.cs
- CompilerResults.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DbConnectionPool.cs
- User.cs
- CalendarSelectionChangedEventArgs.cs
- StylusPlugin.cs
- InternalsVisibleToAttribute.cs
- Model3DGroup.cs
- ListViewItemSelectionChangedEvent.cs
- SqlBinder.cs
- PeerName.cs
- AnnotationStore.cs
- DeviceContext2.cs
- Exception.cs
- CounterSet.cs
- HandlerBase.cs
- SessionPageStateSection.cs
- ActivityDesignerAccessibleObject.cs
- EmptyElement.cs
- PointHitTestResult.cs
- ClientBuildManager.cs
- ChangeBlockUndoRecord.cs
- DecimalAverageAggregationOperator.cs
- FrameworkElement.cs
- WebPartConnectionsConnectVerb.cs
- CodeGenerator.cs
- JournalEntryListConverter.cs
- DynamicRendererThreadManager.cs
- TypeGeneratedEventArgs.cs
- UserControlFileEditor.cs
- SharedPersonalizationStateInfo.cs
- GlyphTypeface.cs
- RelationshipConverter.cs
- MemberInfoSerializationHolder.cs
- FontStretchConverter.cs
- ContentHostHelper.cs
- CounterCreationDataCollection.cs
- DecimalStorage.cs
- SerializationHelper.cs
- FrameworkContextData.cs
- XmlUtil.cs
- CodeTypeReferenceCollection.cs
- ApplicationFileParser.cs
- ExpressionBindingsDialog.cs
- EventLogPermissionAttribute.cs
- StateMachineExecutionState.cs
- XmlNodeChangedEventManager.cs
- GeometryModel3D.cs
- DeclarativeCatalogPart.cs
- MSAAWinEventWrap.cs
- WindowsEditBox.cs
- DoubleAnimation.cs
- WrapPanel.cs
- SymbolType.cs
- SourceFileBuildProvider.cs
- QuotaExceededException.cs
- XmlDictionaryReaderQuotas.cs
- PlainXmlSerializer.cs
- SizeChangedEventArgs.cs
- LocalizableResourceBuilder.cs
- UserControlAutomationPeer.cs
- HttpListenerContext.cs
- ServiceSettingsResponseInfo.cs
- SqlWebEventProvider.cs