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
- SchemaImporterExtensionsSection.cs
- OdbcPermission.cs
- ButtonChrome.cs
- PieceDirectory.cs
- SystemNetHelpers.cs
- MetabaseSettingsIis7.cs
- DataGridViewComboBoxCell.cs
- ToolboxCategoryItems.cs
- ContentElement.cs
- DataGridViewDataConnection.cs
- XmlCustomFormatter.cs
- LinkedResourceCollection.cs
- ConnectionPointCookie.cs
- HtmlToClrEventProxy.cs
- AssociationSet.cs
- WmpBitmapDecoder.cs
- ActivityBuilderXamlWriter.cs
- AssemblyInfo.cs
- TCEAdapterGenerator.cs
- NotSupportedException.cs
- RegexFCD.cs
- FloaterParagraph.cs
- RayHitTestParameters.cs
- StringExpressionSet.cs
- VisualStyleRenderer.cs
- SupportingTokenParameters.cs
- FileVersionInfo.cs
- DivideByZeroException.cs
- BlurBitmapEffect.cs
- InstallerTypeAttribute.cs
- SetIndexBinder.cs
- HostingEnvironment.cs
- SplineKeyFrames.cs
- DataBindingCollection.cs
- Enlistment.cs
- WS2007FederationHttpBinding.cs
- DataGridViewCellStyleConverter.cs
- BuildProviderCollection.cs
- AccessViolationException.cs
- XamlStyleSerializer.cs
- FormsAuthentication.cs
- InstanceCreationEditor.cs
- HttpEncoder.cs
- FileDetails.cs
- SimplePropertyEntry.cs
- WebOperationContext.cs
- WriteTimeStream.cs
- SystemWebExtensionsSectionGroup.cs
- TypeBrowserDialog.cs
- MatrixTransform3D.cs
- CellTreeNodeVisitors.cs
- StringInfo.cs
- RemotingSurrogateSelector.cs
- SelectionHighlightInfo.cs
- BaseParser.cs
- ListBindableAttribute.cs
- StateFinalizationActivity.cs
- GroupItemAutomationPeer.cs
- DataControlPagerLinkButton.cs
- BrowserTree.cs
- FacetDescription.cs
- OracleRowUpdatingEventArgs.cs
- TagPrefixInfo.cs
- AssociationSet.cs
- DelegateTypeInfo.cs
- SessionStateUtil.cs
- LambdaCompiler.Expressions.cs
- DataListItemEventArgs.cs
- RegexCaptureCollection.cs
- RenderCapability.cs
- MultitargetUtil.cs
- MouseBinding.cs
- WebContext.cs
- EncoderBestFitFallback.cs
- Parser.cs
- WrappedReader.cs
- InstanceContextMode.cs
- WebEventCodes.cs
- PropertyDescriptor.cs
- DesignerTextViewAdapter.cs
- EntityTypeBase.cs
- ConfigXmlReader.cs
- HttpCookiesSection.cs
- ChannelSinkStacks.cs
- TreeNode.cs
- MetaTable.cs
- DataServiceProcessingPipelineEventArgs.cs
- TreeNodeBindingCollection.cs
- ListItemsCollectionEditor.cs
- WorkflowWebService.cs
- ItemDragEvent.cs
- MediaEntryAttribute.cs
- CachedFontFace.cs
- FullTextLine.cs
- AxImporter.cs
- CustomErrorCollection.cs
- SendContent.cs
- ThrowHelper.cs
- CommonObjectSecurity.cs
- ImageCodecInfo.cs