Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ReceiveErrorHandling.cs
- DbConnectionPoolGroup.cs
- HttpCacheVary.cs
- BooleanFunctions.cs
- GroupBox.cs
- UrlMappingCollection.cs
- ListViewDeletedEventArgs.cs
- SchemaAttDef.cs
- CryptoStream.cs
- ChannelServices.cs
- Condition.cs
- XmlCustomFormatter.cs
- ArrayTypeMismatchException.cs
- MetaDataInfo.cs
- SiteMapDataSourceView.cs
- LassoSelectionBehavior.cs
- CacheDict.cs
- RegistryKey.cs
- DependencyProperty.cs
- MessageFilter.cs
- TimeSpanConverter.cs
- TraceUtils.cs
- SpellerError.cs
- CatalogPartChrome.cs
- UIntPtr.cs
- PackageRelationshipCollection.cs
- JavaScriptSerializer.cs
- InfoCardTraceRecord.cs
- SessionPageStatePersister.cs
- HtmlTableRowCollection.cs
- HuffCodec.cs
- Selector.cs
- RemoteWebConfigurationHostServer.cs
- RSAOAEPKeyExchangeFormatter.cs
- Wrapper.cs
- _WinHttpWebProxyDataBuilder.cs
- _TimerThread.cs
- TextDpi.cs
- Exceptions.cs
- InvalidProgramException.cs
- ConsoleKeyInfo.cs
- FaultDesigner.cs
- QueryableDataSourceView.cs
- DetailsViewUpdateEventArgs.cs
- DelegateOutArgument.cs
- AudioDeviceOut.cs
- NoClickablePointException.cs
- NumericUpDownAcceleration.cs
- EntitySqlQueryBuilder.cs
- PropertyMapper.cs
- TextEndOfSegment.cs
- ActivityXamlServices.cs
- NavigationPropertyAccessor.cs
- BindingMAnagerBase.cs
- TimeZone.cs
- MenuEventArgs.cs
- SQLDouble.cs
- RNGCryptoServiceProvider.cs
- DataBoundControlAdapter.cs
- InArgument.cs
- DocumentAutomationPeer.cs
- RectValueSerializer.cs
- DataGridRowEventArgs.cs
- FixedStringLookup.cs
- SamlAuthorityBinding.cs
- counter.cs
- StrokeFIndices.cs
- ObjectListShowCommandsEventArgs.cs
- Symbol.cs
- ObjectItemCollection.cs
- SerializationAttributes.cs
- DataSysAttribute.cs
- HttpRequestCacheValidator.cs
- DataViewManager.cs
- EncryptedPackage.cs
- ContentOperations.cs
- AsynchronousChannelMergeEnumerator.cs
- WebPartMinimizeVerb.cs
- MiniParameterInfo.cs
- DataSourceControl.cs
- Geometry3D.cs
- DataGridItemCollection.cs
- ApplicationTrust.cs
- AsyncSerializedWorker.cs
- Table.cs
- XmlQualifiedName.cs
- ClientUrlResolverWrapper.cs
- JoinGraph.cs
- TextModifier.cs
- MyContact.cs
- CorrelationManager.cs
- XmlCharType.cs
- serverconfig.cs
- IntPtr.cs
- loginstatus.cs
- newitemfactory.cs
- TagPrefixInfo.cs
- TextBox.cs
- _IPv6Address.cs