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
- Canvas.cs
- ConfigXmlCDataSection.cs
- OracleCommandSet.cs
- ProfileSettingsCollection.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- AssemblyCache.cs
- IntPtr.cs
- GrammarBuilder.cs
- ActivityCodeDomSerializationManager.cs
- DiagnosticTraceSource.cs
- IUnknownConstantAttribute.cs
- ArrayWithOffset.cs
- CollectionType.cs
- TabRenderer.cs
- Logging.cs
- TextProviderWrapper.cs
- PassportAuthenticationEventArgs.cs
- MatrixCamera.cs
- Scene3D.cs
- ScaleTransform3D.cs
- PropertySourceInfo.cs
- BinaryMethodMessage.cs
- PlanCompiler.cs
- StoreUtilities.cs
- CharAnimationUsingKeyFrames.cs
- CompositeDataBoundControl.cs
- ContentPosition.cs
- VisualState.cs
- StringArrayConverter.cs
- SqlDataRecord.cs
- ProfileInfo.cs
- CheckedListBox.cs
- MimeXmlImporter.cs
- DbConvert.cs
- AlternateView.cs
- ControlPaint.cs
- LineProperties.cs
- HostingPreferredMapPath.cs
- NotFiniteNumberException.cs
- EdmProviderManifest.cs
- DateTimePicker.cs
- SectionUpdates.cs
- XmlNamespaceMappingCollection.cs
- XmlLoader.cs
- WebPartUserCapability.cs
- InkSerializer.cs
- StrokeCollection.cs
- BamlLocalizableResourceKey.cs
- Menu.cs
- MissingMethodException.cs
- BookmarkOptionsHelper.cs
- XmlTypeMapping.cs
- CustomValidator.cs
- FormatterServices.cs
- BulletChrome.cs
- columnmapfactory.cs
- SchemaNamespaceManager.cs
- WebControl.cs
- CollaborationHelperFunctions.cs
- Emitter.cs
- CopyOnWriteList.cs
- IndexedEnumerable.cs
- JoinTreeSlot.cs
- httpserverutility.cs
- DiscoveryClient.cs
- HttpPostServerProtocol.cs
- IRCollection.cs
- StylusEventArgs.cs
- XmlHelper.cs
- SmtpNegotiateAuthenticationModule.cs
- EventLogEntry.cs
- Mouse.cs
- EvidenceBase.cs
- SiteMapProvider.cs
- RuleSettings.cs
- Pair.cs
- Point3DKeyFrameCollection.cs
- UriSection.cs
- WindowClosedEventArgs.cs
- DeflateEmulationStream.cs
- CodeAttributeArgumentCollection.cs
- MimePart.cs
- DBCSCodePageEncoding.cs
- Selection.cs
- ChangeNode.cs
- CipherData.cs
- AnnotationService.cs
- WebRequest.cs
- EventProxy.cs
- MsmqQueue.cs
- HtmlInputReset.cs
- Stack.cs
- Literal.cs
- ViewStateModeByIdAttribute.cs
- TextMarkerSource.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ClearTypeHintValidation.cs
- WebPartZoneBase.cs
- ConfigurationManagerInternalFactory.cs
- StorageConditionPropertyMapping.cs