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
- SourceFileBuildProvider.cs
- TypeToStringValueConverter.cs
- SslStream.cs
- BinaryKeyIdentifierClause.cs
- Sentence.cs
- TextWriter.cs
- PagerSettings.cs
- DrawListViewSubItemEventArgs.cs
- ContractCodeDomInfo.cs
- SortQuery.cs
- Transactions.cs
- SafePEFileHandle.cs
- FormViewCommandEventArgs.cs
- RegistryPermission.cs
- DataRowView.cs
- CustomMenuItemCollection.cs
- CheckBoxDesigner.cs
- ResourceManager.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- M3DUtil.cs
- CacheAxisQuery.cs
- DelegateSerializationHolder.cs
- CfgRule.cs
- VectorAnimationBase.cs
- RemotingConfiguration.cs
- PropertyMap.cs
- TextTreeInsertElementUndoUnit.cs
- ZipIOExtraField.cs
- WhitespaceRule.cs
- EraserBehavior.cs
- ProfileBuildProvider.cs
- ZoneIdentityPermission.cs
- ConvertEvent.cs
- ResourcePermissionBase.cs
- TempEnvironment.cs
- RepeatButton.cs
- RelatedCurrencyManager.cs
- DecimalConstantAttribute.cs
- EmptyEnumerator.cs
- IdentifierCreationService.cs
- HtmlTernaryTree.cs
- ApplicationServiceHelper.cs
- DoubleConverter.cs
- ListViewGroup.cs
- WindowsGraphicsCacheManager.cs
- _SafeNetHandles.cs
- cookiecollection.cs
- GlyphShapingProperties.cs
- DataGridViewCellCollection.cs
- StateElement.cs
- EntityDesignerUtils.cs
- BasicExpandProvider.cs
- PeerOutputChannel.cs
- GeneralTransform3DGroup.cs
- BaseDataListPage.cs
- LogReservationCollection.cs
- _TLSstream.cs
- SatelliteContractVersionAttribute.cs
- XmlSerializerFactory.cs
- XmlDataImplementation.cs
- SchemaLookupTable.cs
- XPathDescendantIterator.cs
- Assembly.cs
- EntityViewGenerationAttribute.cs
- BuilderPropertyEntry.cs
- ColumnMapCopier.cs
- ErrorHandler.cs
- Parser.cs
- GlobalEventManager.cs
- SparseMemoryStream.cs
- DoubleKeyFrameCollection.cs
- PtsCache.cs
- WriteLine.cs
- AssociationEndMember.cs
- RoleManagerModule.cs
- iisPickupDirectory.cs
- XmlSignificantWhitespace.cs
- AudioFileOut.cs
- SecurityManager.cs
- SystemBrushes.cs
- DocumentOrderComparer.cs
- UnsafeNativeMethods.cs
- DataGridViewCellStyleConverter.cs
- KeyInterop.cs
- SafeRegistryKey.cs
- Properties.cs
- CompensatableTransactionScopeActivity.cs
- HotSpotCollectionEditor.cs
- HttpDictionary.cs
- DocumentSequenceHighlightLayer.cs
- DataException.cs
- EventSetterHandlerConverter.cs
- LambdaCompiler.Unary.cs
- Keyboard.cs
- LocatorPartList.cs
- Attributes.cs
- NavigateEvent.cs
- XsdDateTime.cs
- XPathAncestorQuery.cs
- PasswordTextContainer.cs