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
- SrgsText.cs
- SiteMapNodeItemEventArgs.cs
- ConstNode.cs
- AssemblyUtil.cs
- DecoderExceptionFallback.cs
- LayoutExceptionEventArgs.cs
- CookielessHelper.cs
- SystemThemeKey.cs
- InvalidateEvent.cs
- DataGridViewCellStyleChangedEventArgs.cs
- BitmapImage.cs
- Completion.cs
- MetadataItemEmitter.cs
- MimeTextImporter.cs
- DataGridViewCheckBoxCell.cs
- Attributes.cs
- DBPropSet.cs
- CalculatedColumn.cs
- EncodingDataItem.cs
- Code.cs
- RsaSecurityTokenAuthenticator.cs
- PreviewPageInfo.cs
- Misc.cs
- CancellationHandlerDesigner.cs
- Button.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- FlowDocument.cs
- SqlSelectStatement.cs
- QueryResponse.cs
- XsltLibrary.cs
- SQLInt64.cs
- TemplateLookupAction.cs
- EdmItemCollection.cs
- DataTemplateKey.cs
- DesignTimeParseData.cs
- WebPartEditVerb.cs
- PathTooLongException.cs
- UnsafeNativeMethods.cs
- ZoomPercentageConverter.cs
- MergePropertyDescriptor.cs
- UdpRetransmissionSettings.cs
- Form.cs
- BitmapEffectvisualstate.cs
- ipaddressinformationcollection.cs
- LogPolicy.cs
- TypeBuilderInstantiation.cs
- XomlDesignerLoader.cs
- GenericIdentity.cs
- DesignerProperties.cs
- Rect3D.cs
- CustomLineCap.cs
- SamlAuthenticationStatement.cs
- ManipulationVelocities.cs
- UpdatePanelTriggerCollection.cs
- WindowPatternIdentifiers.cs
- Identifier.cs
- OdbcConnectionFactory.cs
- FilterableData.cs
- ByteStreamGeometryContext.cs
- cookiecollection.cs
- ConfigurationElementProperty.cs
- ContextActivityUtils.cs
- FacetDescriptionElement.cs
- ListViewContainer.cs
- WS2007HttpBindingElement.cs
- MimeFormImporter.cs
- DuplicateWaitObjectException.cs
- BridgeDataReader.cs
- ListManagerBindingsCollection.cs
- StandardToolWindows.cs
- WorkflowQueuingService.cs
- CodeVariableReferenceExpression.cs
- InkCanvasInnerCanvas.cs
- IdnElement.cs
- RequestContextBase.cs
- DbConnectionStringBuilder.cs
- RegexCharClass.cs
- PathFigureCollection.cs
- KerberosRequestorSecurityToken.cs
- control.ime.cs
- DoubleAnimationUsingKeyFrames.cs
- FormsAuthenticationCredentials.cs
- namescope.cs
- RadioButton.cs
- StringTraceRecord.cs
- COAUTHINFO.cs
- ExpressionStringBuilder.cs
- FileStream.cs
- ISAPIRuntime.cs
- HeaderedContentControl.cs
- DataGridItemCollection.cs
- DependencyObjectType.cs
- OutKeywords.cs
- DecimalStorage.cs
- Socket.cs
- XmlAttributes.cs
- HexParser.cs
- AuthenticateEventArgs.cs
- SchemaType.cs
- OleDbPropertySetGuid.cs