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
- Html32TextWriter.cs
- NativeMethodsCLR.cs
- XmlQualifiedName.cs
- UnsafeNativeMethodsTablet.cs
- CrossSiteScriptingValidation.cs
- HttpWebRequest.cs
- SplineKeyFrames.cs
- FixedSOMLineCollection.cs
- PermissionSet.cs
- UIPropertyMetadata.cs
- DirectoryGroupQuery.cs
- InternalBase.cs
- DataGridViewCellLinkedList.cs
- EditableRegion.cs
- FileChangesMonitor.cs
- Internal.cs
- XmlSchemaObjectTable.cs
- FrameworkRichTextComposition.cs
- SqlTriggerContext.cs
- DetailsViewCommandEventArgs.cs
- PrivateFontCollection.cs
- MatrixCamera.cs
- StringSorter.cs
- KeyboardEventArgs.cs
- ToolboxItemCollection.cs
- AssemblyUtil.cs
- AutomationEvent.cs
- DesignTimeTemplateParser.cs
- EntityModelBuildProvider.cs
- tibetanshape.cs
- EditorZone.cs
- WCFModelStrings.Designer.cs
- BulletedListEventArgs.cs
- ProxyHelper.cs
- CorrelationInitializer.cs
- TreeNodeStyleCollection.cs
- Emitter.cs
- WindowsStatic.cs
- DocumentPageViewAutomationPeer.cs
- Transactions.cs
- Brush.cs
- ContractReference.cs
- AbstractSvcMapFileLoader.cs
- SrgsDocument.cs
- CodeConstructor.cs
- ETagAttribute.cs
- TypeListConverter.cs
- RegexBoyerMoore.cs
- Application.cs
- IsolatedStorageFilePermission.cs
- GridViewPageEventArgs.cs
- IndexerHelper.cs
- Style.cs
- DebugInfoGenerator.cs
- hwndwrapper.cs
- SQLString.cs
- String.cs
- ManualWorkflowSchedulerService.cs
- XmlParser.cs
- HostingEnvironmentException.cs
- ProcessThreadCollection.cs
- AnnotationResourceCollection.cs
- CriticalHandle.cs
- ParameterElementCollection.cs
- DbQueryCommandTree.cs
- Fonts.cs
- FormViewInsertedEventArgs.cs
- DataServiceRequestOfT.cs
- WebFaultException.cs
- CodeTryCatchFinallyStatement.cs
- AssemblyAttributesGoHere.cs
- Animatable.cs
- NotSupportedException.cs
- DataTableMapping.cs
- ArithmeticException.cs
- EntitySqlException.cs
- ProcessThread.cs
- InternalTransaction.cs
- XmlSchemaComplexType.cs
- MessageQueuePermissionAttribute.cs
- EdmToObjectNamespaceMap.cs
- InfiniteIntConverter.cs
- HttpApplication.cs
- WizardSideBarListControlItem.cs
- HiddenFieldPageStatePersister.cs
- DesignTimeParseData.cs
- Thread.cs
- ValueUnavailableException.cs
- QilInvoke.cs
- StrongNamePublicKeyBlob.cs
- GradientBrush.cs
- ButtonField.cs
- BackgroundFormatInfo.cs
- WinInet.cs
- Brushes.cs
- ContentTextAutomationPeer.cs
- PathFigure.cs
- ResourcePool.cs
- SelectionService.cs
- WebConfigurationManager.cs