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
- UnsafeNativeMethods.cs
- ToolboxItemFilterAttribute.cs
- Vars.cs
- ArgumentException.cs
- InvariantComparer.cs
- XmlSignificantWhitespace.cs
- ToolStripItemTextRenderEventArgs.cs
- PropertyIDSet.cs
- AmbiguousMatchException.cs
- HttpModulesSection.cs
- DuplicateWaitObjectException.cs
- SecurityPermission.cs
- ControlParser.cs
- ImageList.cs
- X509CertificateChain.cs
- StylusSystemGestureEventArgs.cs
- VideoDrawing.cs
- UniqueIdentifierService.cs
- PopupRoot.cs
- ServicePointManager.cs
- GridViewEditEventArgs.cs
- MbpInfo.cs
- ExpressionWriter.cs
- SeekStoryboard.cs
- CacheOutputQuery.cs
- EventsTab.cs
- DataProtection.cs
- ReaderWriterLockWrapper.cs
- SoundPlayer.cs
- DefaultMemberAttribute.cs
- GridViewColumnHeader.cs
- ControlParameter.cs
- TypeSystemHelpers.cs
- View.cs
- EastAsianLunisolarCalendar.cs
- ClientScriptItem.cs
- StrongNamePublicKeyBlob.cs
- Rules.cs
- infer.cs
- LoaderAllocator.cs
- AppDomainUnloadedException.cs
- TransactionTraceIdentifier.cs
- RectConverter.cs
- GuidTagList.cs
- dsa.cs
- safesecurityhelperavalon.cs
- HttpHeaderCollection.cs
- PathFigureCollectionConverter.cs
- SafeFileHandle.cs
- AsyncWaitHandle.cs
- odbcmetadatacollectionnames.cs
- DataKeyCollection.cs
- SectionUpdates.cs
- MissingManifestResourceException.cs
- ListParaClient.cs
- StrokeNodeEnumerator.cs
- ChangePassword.cs
- FocusChangedEventArgs.cs
- FormsAuthenticationCredentials.cs
- EventData.cs
- Wow64ConfigurationLoader.cs
- EdmMember.cs
- DesignerCalendarAdapter.cs
- CqlIdentifiers.cs
- DbConnectionFactory.cs
- TabItemAutomationPeer.cs
- WriteableBitmap.cs
- SiteMapDesignerDataSourceView.cs
- Floater.cs
- SecurityTokenSerializer.cs
- CompletionBookmark.cs
- CustomError.cs
- EdgeProfileValidation.cs
- ReadOnlyDictionary.cs
- DataKeyArray.cs
- CodeChecksumPragma.cs
- AnimationStorage.cs
- SkewTransform.cs
- RetrieveVirtualItemEventArgs.cs
- TransformGroup.cs
- RegexMatchCollection.cs
- ObjectItemLoadingSessionData.cs
- SelectedDatesCollection.cs
- ComAwareEventInfo.cs
- BindingUtils.cs
- AttributeTableBuilder.cs
- WmlTextBoxAdapter.cs
- CultureInfoConverter.cs
- InlinedAggregationOperator.cs
- SqlCommand.cs
- ContentType.cs
- X509CertificateCollection.cs
- HandlerBase.cs
- ProxyGenerator.cs
- PropertyValue.cs
- BufferedReadStream.cs
- CssTextWriter.cs
- MembershipPasswordException.cs
- StringReader.cs
- PeerHopCountAttribute.cs