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
- PasswordDeriveBytes.cs
- ViewManager.cs
- ToolstripProfessionalRenderer.cs
- NoneExcludedImageIndexConverter.cs
- ValueType.cs
- ImageFormat.cs
- SoapAttributeOverrides.cs
- CultureInfoConverter.cs
- MaterializeFromAtom.cs
- TokenizerHelper.cs
- RepeatBehavior.cs
- DocobjHost.cs
- SqlWebEventProvider.cs
- ToolStripItemEventArgs.cs
- InternalConfigHost.cs
- ImageCollectionEditor.cs
- Setter.cs
- DataGridRowClipboardEventArgs.cs
- TargetInvocationException.cs
- TcpConnectionPoolSettings.cs
- AssemblySettingAttributes.cs
- LinearGradientBrush.cs
- HitTestWithGeometryDrawingContextWalker.cs
- WindowCollection.cs
- SqlFunctionAttribute.cs
- X500Name.cs
- DisplayNameAttribute.cs
- HttpBrowserCapabilitiesWrapper.cs
- PenLineCapValidation.cs
- ApplicationCommands.cs
- SecureUICommand.cs
- DetailsView.cs
- DesignerRegionCollection.cs
- UnsafePeerToPeerMethods.cs
- SingleAnimationUsingKeyFrames.cs
- InvokePatternIdentifiers.cs
- MetadataItemCollectionFactory.cs
- QilCloneVisitor.cs
- MetadataHelper.cs
- InvalidateEvent.cs
- CodeCatchClauseCollection.cs
- MiniParameterInfo.cs
- Schema.cs
- MenuScrollingVisibilityConverter.cs
- RadioButtonAutomationPeer.cs
- DecoderFallback.cs
- SimpleFileLog.cs
- ConfigErrorGlyph.cs
- FrameworkContentElementAutomationPeer.cs
- CodeMethodInvokeExpression.cs
- ApplicationTrust.cs
- ContractNamespaceAttribute.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ControlPaint.cs
- HttpRequestWrapper.cs
- OracleSqlParser.cs
- ToolStripItemCollection.cs
- LabelDesigner.cs
- TransformProviderWrapper.cs
- FontNamesConverter.cs
- FixedDocumentPaginator.cs
- Vector3DKeyFrameCollection.cs
- BuildResult.cs
- WebPartDisplayModeEventArgs.cs
- CompatibleComparer.cs
- TemplateComponentConnector.cs
- DbParameterHelper.cs
- ScalarConstant.cs
- PassportIdentity.cs
- CodeCastExpression.cs
- PixelFormat.cs
- AnnotationAdorner.cs
- RelOps.cs
- DesignBindingValueUIHandler.cs
- PrivateFontCollection.cs
- ImageButton.cs
- DbDataReader.cs
- WindowsStatic.cs
- RadioButtonAutomationPeer.cs
- PointConverter.cs
- GrammarBuilderDictation.cs
- ObjectAnimationBase.cs
- DataViewManager.cs
- StringAnimationUsingKeyFrames.cs
- BaseCollection.cs
- ListViewInsertionMark.cs
- XslTransform.cs
- ColorKeyFrameCollection.cs
- ContextInformation.cs
- PropertyEmitter.cs
- Pkcs7Recipient.cs
- Int32Rect.cs
- MasterPageParser.cs
- ChildTable.cs
- CursorConverter.cs
- Rotation3D.cs
- TextEditorCharacters.cs
- AppSettings.cs
- SqlNode.cs
- HttpServerVarsCollection.cs