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
- DoubleLink.cs
- TextAnchor.cs
- ConvertersCollection.cs
- PtsHost.cs
- RetrieveVirtualItemEventArgs.cs
- ScrollContentPresenter.cs
- CalendarTable.cs
- NameHandler.cs
- ElementAction.cs
- WeakEventManager.cs
- RawStylusSystemGestureInputReport.cs
- ToolStripItemBehavior.cs
- ControlParameter.cs
- DesignerTextBoxAdapter.cs
- SQLMembershipProvider.cs
- URIFormatException.cs
- XPathDescendantIterator.cs
- XPathParser.cs
- SqlTransaction.cs
- CollectionView.cs
- AdvancedBindingPropertyDescriptor.cs
- ISFTagAndGuidCache.cs
- CngKeyCreationParameters.cs
- PropertyTabAttribute.cs
- HttpChannelBindingToken.cs
- ListBoxItemAutomationPeer.cs
- CapiSafeHandles.cs
- InstanceKeyNotReadyException.cs
- RoutedEventArgs.cs
- XmlElementAttributes.cs
- TargetParameterCountException.cs
- MouseGesture.cs
- XslVisitor.cs
- RequestQueryProcessor.cs
- ActivityWithResultWrapper.cs
- WebPartEditorApplyVerb.cs
- TextSimpleMarkerProperties.cs
- LeftCellWrapper.cs
- EdmFunctions.cs
- DesignTimeType.cs
- AppDomainResourcePerfCounters.cs
- RtfControlWordInfo.cs
- BasicHttpMessageCredentialType.cs
- DiscreteKeyFrames.cs
- SqlDataSourceStatusEventArgs.cs
- MatrixAnimationUsingPath.cs
- ProxyHwnd.cs
- TogglePatternIdentifiers.cs
- FixedSOMPage.cs
- GlyphTypeface.cs
- PrimitiveSchema.cs
- BinaryCommonClasses.cs
- SemanticResultKey.cs
- HttpAsyncResult.cs
- PreservationFileReader.cs
- DataBoundControlHelper.cs
- EntityClassGenerator.cs
- ProvidersHelper.cs
- UpdatableGenericsFeature.cs
- ColumnHeader.cs
- DefaultParameterValueAttribute.cs
- X509Chain.cs
- RegistryKey.cs
- TextEffectCollection.cs
- ReadOnlyDataSource.cs
- MembershipUser.cs
- BasicExpandProvider.cs
- HandoffBehavior.cs
- RawStylusInput.cs
- DataColumnMapping.cs
- SqlGatherConsumedAliases.cs
- ServiceOperationWrapper.cs
- StateDesigner.Layouts.cs
- BevelBitmapEffect.cs
- _AutoWebProxyScriptWrapper.cs
- Button.cs
- DetailsViewRow.cs
- ClientConfigurationHost.cs
- SortQuery.cs
- RegexCompilationInfo.cs
- ToolStripItemClickedEventArgs.cs
- ReflectionPermission.cs
- Trustee.cs
- AppliesToBehaviorDecisionTable.cs
- DeclaredTypeValidator.cs
- ConfigXmlSignificantWhitespace.cs
- ThemeableAttribute.cs
- RichTextBox.cs
- CustomDictionarySources.cs
- TransactedReceiveScope.cs
- CustomAttributeSerializer.cs
- MessageQueuePermissionAttribute.cs
- HitTestResult.cs
- FastEncoder.cs
- CommandPlan.cs
- CompilerCollection.cs
- LiteralControl.cs
- IconBitmapDecoder.cs
- TextDecorationCollectionConverter.cs
- EntityDescriptor.cs