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
- ComponentChangedEvent.cs
- Queue.cs
- AbandonedMutexException.cs
- ValueProviderWrapper.cs
- cookiecollection.cs
- MTConfigUtil.cs
- PowerStatus.cs
- Transform3DGroup.cs
- AlgoModule.cs
- SafeJobHandle.cs
- assertwrapper.cs
- Stroke2.cs
- EntityConnectionStringBuilderItem.cs
- WebPartDescription.cs
- SiteMapDataSource.cs
- QilInvokeLateBound.cs
- DispatcherProcessingDisabled.cs
- TextFormatterContext.cs
- Material.cs
- SettingsPropertyCollection.cs
- PointHitTestParameters.cs
- SecurityToken.cs
- DataSourceView.cs
- PTConverter.cs
- TcpStreams.cs
- wgx_render.cs
- BreakRecordTable.cs
- BevelBitmapEffect.cs
- TabPanel.cs
- DesignerActionTextItem.cs
- UseManagedPresentationBindingElement.cs
- GACMembershipCondition.cs
- TextSelectionHelper.cs
- Math.cs
- cookiecollection.cs
- ScrollableControl.cs
- BoundField.cs
- AuthorizationSection.cs
- DbConnectionPoolOptions.cs
- SafeFileMappingHandle.cs
- GlyphTypeface.cs
- ConfigurationElementProperty.cs
- _CacheStreams.cs
- IncrementalHitTester.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- RequestTimeoutManager.cs
- login.cs
- DispatcherHookEventArgs.cs
- NullableIntSumAggregationOperator.cs
- Padding.cs
- IisTraceListener.cs
- HotSpot.cs
- StrokeNodeOperations2.cs
- XamlPointCollectionSerializer.cs
- ByteStack.cs
- ConfigurationHandlersInstallComponent.cs
- XPathNodeInfoAtom.cs
- RIPEMD160Managed.cs
- Application.cs
- BoundColumn.cs
- DataSourceSerializationException.cs
- TryExpression.cs
- PassportPrincipal.cs
- ValidationSummary.cs
- DataSourceCache.cs
- DES.cs
- Rotation3DKeyFrameCollection.cs
- DispatcherEventArgs.cs
- SqlRowUpdatedEvent.cs
- RawStylusSystemGestureInputReport.cs
- SqlBulkCopy.cs
- GeneralTransform3DGroup.cs
- RelationshipEndCollection.cs
- ExpressionVisitor.cs
- ThreadAbortException.cs
- Positioning.cs
- CacheSection.cs
- DocumentGridContextMenu.cs
- DocumentReference.cs
- LoginNameDesigner.cs
- IntegrationExceptionEventArgs.cs
- _SslStream.cs
- BoolLiteral.cs
- Publisher.cs
- DataSourceCache.cs
- AssemblyName.cs
- EventSourceCreationData.cs
- prompt.cs
- ApplicationServiceHelper.cs
- ScrollChrome.cs
- ConsumerConnectionPointCollection.cs
- WebMethodAttribute.cs
- EncoderParameters.cs
- CodeDefaultValueExpression.cs
- AccessDataSourceView.cs
- PtsHelper.cs
- EndPoint.cs
- CaseInsensitiveComparer.cs
- SafeNativeMethodsMilCoreApi.cs
- initElementDictionary.cs