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
- BooleanAnimationUsingKeyFrames.cs
- OneOfScalarConst.cs
- WebPartTransformer.cs
- XmlLanguageConverter.cs
- InternalCache.cs
- DataStreamFromComStream.cs
- WorkflowTerminatedException.cs
- OleDbRowUpdatedEvent.cs
- Size.cs
- CodeDelegateInvokeExpression.cs
- UnknownWrapper.cs
- nulltextcontainer.cs
- LinqDataSourceUpdateEventArgs.cs
- EraserBehavior.cs
- EventHandlerList.cs
- ExpressionNode.cs
- ConnectionStringsExpressionBuilder.cs
- TemplateBindingExpressionConverter.cs
- AutomationPatternInfo.cs
- ControlHelper.cs
- StringArrayConverter.cs
- LinkArea.cs
- SmtpCommands.cs
- SoapFormatExtensions.cs
- XmlArrayAttribute.cs
- ArgumentValueSerializer.cs
- ColorPalette.cs
- ClonableStack.cs
- ListenerConnectionDemuxer.cs
- CommandDesigner.cs
- PropertyCollection.cs
- XXXInfos.cs
- SqlGenericUtil.cs
- DataSourceBooleanViewSchemaConverter.cs
- OrderedDictionaryStateHelper.cs
- AppPool.cs
- __ConsoleStream.cs
- IndexOutOfRangeException.cs
- Config.cs
- BufferedGraphicsManager.cs
- DataList.cs
- XPathBinder.cs
- SerializationSectionGroup.cs
- SoapMessage.cs
- CodeDefaultValueExpression.cs
- EventSetterHandlerConverter.cs
- SoapExtensionTypeElement.cs
- RbTree.cs
- HandlerElement.cs
- OleDbSchemaGuid.cs
- MetadataHelper.cs
- DynamicObject.cs
- PenCursorManager.cs
- CollectionViewProxy.cs
- XmlQueryOutput.cs
- UnmanagedMarshal.cs
- InvalidDataContractException.cs
- ExpressionBuilder.cs
- WorkflowViewStateService.cs
- CollectionViewGroup.cs
- TypefaceMap.cs
- SingleConverter.cs
- Enum.cs
- EmissiveMaterial.cs
- InkCanvas.cs
- WebErrorHandler.cs
- OdbcEnvironmentHandle.cs
- ObjectListCommand.cs
- ChangeBlockUndoRecord.cs
- CornerRadius.cs
- DispatcherHookEventArgs.cs
- _Events.cs
- PropertySegmentSerializer.cs
- ImportCatalogPart.cs
- PasswordBoxAutomationPeer.cs
- SettingsPropertyValue.cs
- Button.cs
- XAMLParseException.cs
- InvokeBase.cs
- MemberHolder.cs
- ScaleTransform3D.cs
- CroppedBitmap.cs
- RepeatButton.cs
- FileChangeNotifier.cs
- MonikerHelper.cs
- SerializationSectionGroup.cs
- FragmentQueryProcessor.cs
- ResolvedKeyFrameEntry.cs
- DashStyles.cs
- Token.cs
- DefaultHttpHandler.cs
- FontFamilyIdentifier.cs
- SoundPlayer.cs
- OutputCacheSection.cs
- DetailsViewDeletedEventArgs.cs
- _UriSyntax.cs
- DbConvert.cs
- SpAudioStreamWrapper.cs
- BlurEffect.cs
- PaperSource.cs