Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- sapiproxy.cs
- TemplateBamlRecordReader.cs
- OperationValidationEventArgs.cs
- OleDbWrapper.cs
- TransformDescriptor.cs
- BaseParagraph.cs
- SinglePageViewer.cs
- TransactionBehavior.cs
- EntityStoreSchemaGenerator.cs
- safelinkcollection.cs
- TypeElementCollection.cs
- propertytag.cs
- CompilationSection.cs
- TagNameToTypeMapper.cs
- MessageQueueInstaller.cs
- SplitContainer.cs
- SignatureDescription.cs
- UniqueEventHelper.cs
- RequiredFieldValidator.cs
- HttpPostedFileBase.cs
- GridEntryCollection.cs
- XmlAttributeCache.cs
- DbSourceCommand.cs
- Marshal.cs
- ZipIOExtraFieldElement.cs
- EmbeddedObject.cs
- NullableIntAverageAggregationOperator.cs
- OleDbInfoMessageEvent.cs
- CommonProperties.cs
- CfgRule.cs
- XmlArrayItemAttribute.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- SynchronizedDispatch.cs
- WorkflowDesignerColors.cs
- Merger.cs
- IndentedTextWriter.cs
- ToolboxItemFilterAttribute.cs
- DataGridViewColumnCollectionEditor.cs
- SourceElementsCollection.cs
- ProfileGroupSettings.cs
- XmlComment.cs
- CryptoStream.cs
- RotateTransform.cs
- ListBindableAttribute.cs
- XmlNamespaceDeclarationsAttribute.cs
- TextFormatter.cs
- RenderingEventArgs.cs
- AssertHelper.cs
- ProxyHwnd.cs
- Vector3DAnimationBase.cs
- IpcClientManager.cs
- UnsafeNativeMethods.cs
- MaterialGroup.cs
- PowerEase.cs
- SplitContainer.cs
- IgnoreFileBuildProvider.cs
- SerializationHelper.cs
- OdbcConnectionString.cs
- DynamicPropertyHolder.cs
- QilValidationVisitor.cs
- ViewStateModeByIdAttribute.cs
- EventQueueState.cs
- _HeaderInfo.cs
- SortExpressionBuilder.cs
- DataReaderContainer.cs
- StylusButtonCollection.cs
- Point3DValueSerializer.cs
- XmlBinaryWriterSession.cs
- EncoderBestFitFallback.cs
- DesignerDataRelationship.cs
- AppDomainUnloadedException.cs
- ScriptingSectionGroup.cs
- OracleTimeSpan.cs
- BindingExpression.cs
- NavigationHelper.cs
- KeyValueConfigurationCollection.cs
- SafeLibraryHandle.cs
- ContentFileHelper.cs
- SqlCommandBuilder.cs
- ListManagerBindingsCollection.cs
- SchemaNames.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ReferenceSchema.cs
- MgmtConfigurationRecord.cs
- Debugger.cs
- SqlPersonalizationProvider.cs
- InlineCollection.cs
- UnsafeNativeMethods.cs
- PublisherMembershipCondition.cs
- SchemaNamespaceManager.cs
- ContextBase.cs
- XmlSchemaParticle.cs
- RenderOptions.cs
- PerformanceCountersElement.cs
- TextUtf8RawTextWriter.cs
- DataGridRowEventArgs.cs
- SchemaElementDecl.cs
- WeakRefEnumerator.cs
- TextTrailingCharacterEllipsis.cs
- TemplatePagerField.cs