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
- TraceHwndHost.cs
- ContentPosition.cs
- CorrelationResolver.cs
- Table.cs
- LazyInitializer.cs
- IDQuery.cs
- FileLoadException.cs
- PropertyMapper.cs
- InputMethodStateChangeEventArgs.cs
- WriteTimeStream.cs
- DropDownList.cs
- ExpressionPrefixAttribute.cs
- IImplicitResourceProvider.cs
- X509ChainElement.cs
- WindowManager.cs
- Relationship.cs
- DateTimePicker.cs
- TextMetrics.cs
- Popup.cs
- IPCCacheManager.cs
- MenuItemStyle.cs
- DataGridBoundColumn.cs
- GetIndexBinder.cs
- TableProviderWrapper.cs
- BehaviorEditorPart.cs
- COM2PropertyDescriptor.cs
- MethodSet.cs
- CharKeyFrameCollection.cs
- JsonStringDataContract.cs
- TextEndOfLine.cs
- Win32Interop.cs
- NullableConverter.cs
- EdmRelationshipRoleAttribute.cs
- RegexWriter.cs
- LinqDataSourceHelper.cs
- DesignTimeTemplateParser.cs
- PrePrepareMethodAttribute.cs
- CompoundFileIOPermission.cs
- InputLanguage.cs
- FormViewUpdatedEventArgs.cs
- MemoryRecordBuffer.cs
- SqlMethodAttribute.cs
- SchemaTableOptionalColumn.cs
- OleDbRowUpdatingEvent.cs
- RankException.cs
- DataDocumentXPathNavigator.cs
- MetricEntry.cs
- StringExpressionSet.cs
- ChannelCacheSettings.cs
- DataControlField.cs
- HttpListenerResponse.cs
- DataMisalignedException.cs
- ToolStripArrowRenderEventArgs.cs
- Volatile.cs
- FreezableDefaultValueFactory.cs
- CounterCreationData.cs
- WriteLine.cs
- ObjectStateEntryDbDataRecord.cs
- LoginUtil.cs
- RemotingConfiguration.cs
- ManagementClass.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- Page.cs
- EnumerableCollectionView.cs
- PropertyTab.cs
- RijndaelManaged.cs
- JsonUriDataContract.cs
- MemberDescriptor.cs
- WeakReferenceList.cs
- ToolStripSplitButton.cs
- UrlMapping.cs
- GeneralTransform.cs
- UnsafeNativeMethodsPenimc.cs
- BamlRecordWriter.cs
- X509Utils.cs
- TableParaClient.cs
- ChangeDirector.cs
- StrongNamePublicKeyBlob.cs
- OutKeywords.cs
- Panel.cs
- PackWebResponse.cs
- IpcServerChannel.cs
- FormatterServices.cs
- infer.cs
- OpCodes.cs
- XmlIterators.cs
- IsolatedStoragePermission.cs
- ToolStripDropDown.cs
- UpDownBase.cs
- GuidConverter.cs
- AssemblySettingAttributes.cs
- ContextQuery.cs
- InvalidCastException.cs
- FlowDocumentPaginator.cs
- StaticFileHandler.cs
- RelativeSource.cs
- RelationshipDetailsRow.cs
- HtmlShim.cs
- ServiceOperationParameter.cs
- SecureStringHasher.cs