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
- AuthenticationConfig.cs
- TreeNodeBindingCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- CodeTypeOfExpression.cs
- HostingEnvironment.cs
- SmiGettersStream.cs
- ScrollViewer.cs
- SafeNativeMethods.cs
- SerialPinChanges.cs
- XmlUtil.cs
- DBSchemaTable.cs
- MetadataCache.cs
- TimeIntervalCollection.cs
- ArraySet.cs
- HtmlContainerControl.cs
- AspNetHostingPermission.cs
- SoundPlayer.cs
- ToolStripGrip.cs
- UnescapedXmlDiagnosticData.cs
- FileDialog.cs
- AsymmetricCryptoHandle.cs
- RijndaelCryptoServiceProvider.cs
- Brush.cs
- SmiMetaDataProperty.cs
- Emitter.cs
- DataGridViewCellStyleEditor.cs
- DataGridViewRowCancelEventArgs.cs
- DocumentEventArgs.cs
- DeviceOverridableAttribute.cs
- MetadataCache.cs
- wgx_exports.cs
- MobileUserControl.cs
- _ListenerRequestStream.cs
- SendKeys.cs
- PointHitTestResult.cs
- FixedPosition.cs
- ResourcesChangeInfo.cs
- GridToolTip.cs
- Overlapped.cs
- altserialization.cs
- serverconfig.cs
- EntityContainerEmitter.cs
- ExpanderAutomationPeer.cs
- PlainXmlWriter.cs
- ChtmlTextBoxAdapter.cs
- DescendantOverDescendantQuery.cs
- FormatSettings.cs
- EditableTreeList.cs
- OdbcPermission.cs
- RawUIStateInputReport.cs
- DocumentViewerBase.cs
- Expression.cs
- SpecularMaterial.cs
- SectionVisual.cs
- CollectionViewSource.cs
- XmlSerializerFactory.cs
- ImageFormatConverter.cs
- LiteralTextContainerControlBuilder.cs
- HttpCacheVary.cs
- AttributeData.cs
- StorageSetMapping.cs
- PopupControlService.cs
- ToolStripDropDownClosingEventArgs.cs
- DbConnectionClosed.cs
- ContentElementAutomationPeer.cs
- ProjectionCamera.cs
- XmlIterators.cs
- Point.cs
- SHA1.cs
- SecurityException.cs
- coordinator.cs
- BehaviorEditorPart.cs
- ReferenceConverter.cs
- RemoteWebConfigurationHost.cs
- BamlLocalizer.cs
- IdentityNotMappedException.cs
- ClientSettingsProvider.cs
- PropertyExpression.cs
- InkCanvasFeedbackAdorner.cs
- PointAnimationClockResource.cs
- NativeCompoundFileAPIs.cs
- StopStoryboard.cs
- TemplateParser.cs
- CompareInfo.cs
- MessageSmuggler.cs
- Parser.cs
- ScrollChrome.cs
- ShortcutKeysEditor.cs
- DATA_BLOB.cs
- XPathDocumentNavigator.cs
- JsonCollectionDataContract.cs
- NonSerializedAttribute.cs
- DependencyObjectCodeDomSerializer.cs
- WinEventTracker.cs
- ImageBrush.cs
- BuilderElements.cs
- ComponentEditorPage.cs
- PaperSource.cs
- TextOptions.cs
- Unit.cs