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
- RequestCache.cs
- WebConfigurationHost.cs
- ArrayConverter.cs
- TextBox.cs
- CapabilitiesSection.cs
- Types.cs
- DirectoryNotFoundException.cs
- DataGridState.cs
- CachedRequestParams.cs
- DataGridViewTextBoxColumn.cs
- Int16AnimationBase.cs
- WindowVisualStateTracker.cs
- HasCopySemanticsAttribute.cs
- XmlElementCollection.cs
- GrammarBuilderRuleRef.cs
- MobileRedirect.cs
- HttpChannelBindingToken.cs
- MsmqChannelFactory.cs
- FlowNode.cs
- MultipleViewProviderWrapper.cs
- _RequestCacheProtocol.cs
- FocusWithinProperty.cs
- BitmapEffectDrawingContextState.cs
- HostingEnvironment.cs
- MetafileHeaderEmf.cs
- FamilyTypeface.cs
- DateTimeConstantAttribute.cs
- DataPagerCommandEventArgs.cs
- ToolTipService.cs
- XmlILModule.cs
- StringUtil.cs
- TabPage.cs
- MaterializeFromAtom.cs
- IdleTimeoutMonitor.cs
- SpellerHighlightLayer.cs
- ConfigurationLocationCollection.cs
- NumericUpDownAccelerationCollection.cs
- RowToFieldTransformer.cs
- QfeChecker.cs
- BitmapEffect.cs
- GridViewRow.cs
- PointCollectionValueSerializer.cs
- LookupNode.cs
- GeneralTransform3DCollection.cs
- ScriptRegistrationManager.cs
- XmlSchemaValidator.cs
- StorageModelBuildProvider.cs
- InteropAutomationProvider.cs
- BitmapFrame.cs
- TokenBasedSet.cs
- _Win32.cs
- BinaryUtilClasses.cs
- TextServicesHost.cs
- MappingException.cs
- XmlValidatingReader.cs
- LinkedDataMemberFieldEditor.cs
- OdbcStatementHandle.cs
- AccessDataSource.cs
- AdornerLayer.cs
- RangeValuePattern.cs
- LayoutSettings.cs
- AutomationEvent.cs
- IntegrationExceptionEventArgs.cs
- PermissionListSet.cs
- WebPartRestoreVerb.cs
- SafeRightsManagementPubHandle.cs
- StringInfo.cs
- COAUTHINFO.cs
- ConditionValidator.cs
- GeometryValueSerializer.cs
- XPathNodeInfoAtom.cs
- CodeAccessPermission.cs
- ContainerSelectorGlyph.cs
- FamilyTypefaceCollection.cs
- CustomBinding.cs
- TransformationRules.cs
- CriticalFinalizerObject.cs
- FormViewDeletedEventArgs.cs
- NamespaceCollection.cs
- FunctionOverloadResolver.cs
- OdbcUtils.cs
- AuthenticationManager.cs
- RotateTransform.cs
- LoginName.cs
- ClockGroup.cs
- WindowProviderWrapper.cs
- JoinTreeSlot.cs
- MiniLockedBorderGlyph.cs
- BatchWriter.cs
- CodeCompiler.cs
- ReadOnlyDataSourceView.cs
- FileSystemInfo.cs
- SmiSettersStream.cs
- UnregisterInfo.cs
- Token.cs
- DataControlLinkButton.cs
- TemplatedAdorner.cs
- ConnectionsZone.cs
- ThreadStateException.cs
- LogLogRecordHeader.cs