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
- SuppressMessageAttribute.cs
- CodeTypeMember.cs
- CodeMemberProperty.cs
- OptionalMessageQuery.cs
- StaticResourceExtension.cs
- TagMapCollection.cs
- CorrelationResolver.cs
- ImageDrawing.cs
- LookupBindingPropertiesAttribute.cs
- BindingSourceDesigner.cs
- DateTimeStorage.cs
- OptimizedTemplateContentHelper.cs
- Util.cs
- StorageInfo.cs
- WebPartDisplayModeCollection.cs
- RSAPKCS1SignatureFormatter.cs
- Section.cs
- IPEndPoint.cs
- AlignmentXValidation.cs
- DynamicValidatorEventArgs.cs
- ActiveDocumentEvent.cs
- AQNBuilder.cs
- VisualStyleRenderer.cs
- VBIdentifierDesigner.xaml.cs
- DiagnosticsElement.cs
- StateChangeEvent.cs
- FixedPageAutomationPeer.cs
- FrameworkElementAutomationPeer.cs
- DataGridViewBand.cs
- UpdatableGenericsFeature.cs
- URLIdentityPermission.cs
- BackgroundFormatInfo.cs
- TrustManagerMoreInformation.cs
- EventMappingSettingsCollection.cs
- FontCacheUtil.cs
- ButtonBase.cs
- Decoder.cs
- TextAction.cs
- NullableFloatMinMaxAggregationOperator.cs
- TypeConstant.cs
- OracleTransaction.cs
- FilterEventArgs.cs
- FileDialog.cs
- RadioButtonRenderer.cs
- OracleRowUpdatingEventArgs.cs
- log.cs
- ComponentEditorPage.cs
- ActivityMarkupSerializer.cs
- FileFormatException.cs
- Activity.cs
- PolicyManager.cs
- HttpProcessUtility.cs
- CodePageUtils.cs
- DocumentProperties.cs
- UserControl.cs
- TokenBasedSet.cs
- ListBox.cs
- Typeface.cs
- EntityContainer.cs
- DataDocumentXPathNavigator.cs
- ControllableStoryboardAction.cs
- NavigationHelper.cs
- ActivityStatusChangeEventArgs.cs
- EmptyEnumerator.cs
- FragmentQuery.cs
- GroupLabel.cs
- MarshalByValueComponent.cs
- SchemaNames.cs
- RSACryptoServiceProvider.cs
- COM2FontConverter.cs
- SecurityCriticalDataForSet.cs
- SqlError.cs
- EntityReference.cs
- SequenceNumber.cs
- WinEventWrap.cs
- DbMetaDataFactory.cs
- SqlSupersetValidator.cs
- AccessorTable.cs
- DynamicQueryableWrapper.cs
- MatrixUtil.cs
- InvalidContentTypeException.cs
- ByteStorage.cs
- WindowPattern.cs
- UriTemplateVariableQueryValue.cs
- ModifiableIteratorCollection.cs
- XmlIncludeAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DashStyles.cs
- FixUp.cs
- SQLDateTimeStorage.cs
- SqlMethodTransformer.cs
- DataServiceHost.cs
- XmlC14NWriter.cs
- StoreContentChangedEventArgs.cs
- ColumnWidthChangedEvent.cs
- CacheRequest.cs
- SwitchCase.cs
- InvalidProgramException.cs
- ServiceDesigner.xaml.cs
- MailWriter.cs