Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / KeyboardEventArgs.cs / 1305600 / 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
- RequestCacheValidator.cs
- DataBoundControl.cs
- CreateUserWizard.cs
- CaseStatement.cs
- SettingsBindableAttribute.cs
- DbSetClause.cs
- ImageListDesigner.cs
- DesignTimeParseData.cs
- ExpressionConverter.cs
- GroupStyle.cs
- GridLengthConverter.cs
- ColorDialog.cs
- Transform.cs
- PropertyPathWorker.cs
- NativeActivityFaultContext.cs
- mda.cs
- WebDescriptionAttribute.cs
- Graph.cs
- SamlEvidence.cs
- XmlSchemaCollection.cs
- BamlLocalizableResourceKey.cs
- ArgumentsParser.cs
- NativeRightsManagementAPIsStructures.cs
- ComplexObject.cs
- PermissionSet.cs
- ApplicationException.cs
- HtmlWindow.cs
- Section.cs
- PageHandlerFactory.cs
- TargetFrameworkUtil.cs
- XmlWrappingReader.cs
- SchemaDeclBase.cs
- RolePrincipal.cs
- AttributeSetAction.cs
- RegexCode.cs
- IdentitySection.cs
- TextRangeBase.cs
- ZoneLinkButton.cs
- StringFunctions.cs
- SystemUnicastIPAddressInformation.cs
- Menu.cs
- PointAnimationClockResource.cs
- control.ime.cs
- ErrorRuntimeConfig.cs
- BinaryVersion.cs
- designeractionlistschangedeventargs.cs
- ChannelPoolSettingsElement.cs
- AsymmetricSignatureFormatter.cs
- TypeElementCollection.cs
- TableLayoutRowStyleCollection.cs
- TreeViewItemAutomationPeer.cs
- RequestResizeEvent.cs
- ExtensionQuery.cs
- XslCompiledTransform.cs
- ExpressionBindings.cs
- Normalization.cs
- BitmapFrameEncode.cs
- StrokeDescriptor.cs
- RegexRunnerFactory.cs
- LinqDataSourceInsertEventArgs.cs
- ReadOnlyHierarchicalDataSourceView.cs
- AliasExpr.cs
- UnauthorizedWebPart.cs
- AsymmetricAlgorithm.cs
- OleDbWrapper.cs
- ReferenceConverter.cs
- ExtendedProperty.cs
- RepeaterCommandEventArgs.cs
- CompilerState.cs
- SystemParameters.cs
- XmlSchemaSequence.cs
- StoryFragments.cs
- AnnotationAuthorChangedEventArgs.cs
- oledbconnectionstring.cs
- PropertyManager.cs
- ServiceAuthorizationBehavior.cs
- regiisutil.cs
- FunctionQuery.cs
- SQLStringStorage.cs
- ValueOfAction.cs
- ISFClipboardData.cs
- TextTreeUndoUnit.cs
- GlyphRunDrawing.cs
- DragEvent.cs
- DataFieldEditor.cs
- DynamicRenderer.cs
- _UncName.cs
- SplineQuaternionKeyFrame.cs
- HashLookup.cs
- GlobalEventManager.cs
- HwndSource.cs
- QueueTransferProtocol.cs
- ExplicitDiscriminatorMap.cs
- HttpListenerPrefixCollection.cs
- RowToFieldTransformer.cs
- MimeFormImporter.cs
- DoubleCollectionConverter.cs
- DocumentApplicationJournalEntry.cs
- SelectionHighlightInfo.cs
- CompilerGeneratedAttribute.cs