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
- ObfuscationAttribute.cs
- TextTrailingCharacterEllipsis.cs
- JsonDeserializer.cs
- FilterQuery.cs
- TransformPattern.cs
- VirtualDirectoryMappingCollection.cs
- ControlAdapter.cs
- ServiceDocumentFormatter.cs
- FontFamily.cs
- PropertyChange.cs
- KeyInstance.cs
- OleDbDataAdapter.cs
- Hashtable.cs
- PopOutPanel.cs
- fixedPageContentExtractor.cs
- MouseWheelEventArgs.cs
- TimeSpanFormat.cs
- StylusPointPropertyId.cs
- RTLAwareMessageBox.cs
- ToolBarButtonDesigner.cs
- Debugger.cs
- BindingContext.cs
- LogExtentCollection.cs
- LoadedOrUnloadedOperation.cs
- DataGridToolTip.cs
- HtmlElementEventArgs.cs
- InkCanvasSelectionAdorner.cs
- HelpFileFileNameEditor.cs
- Int16AnimationUsingKeyFrames.cs
- ToReply.cs
- ObjectDataSourceDesigner.cs
- ExpressionEditorAttribute.cs
- Serializer.cs
- QueryCacheEntry.cs
- ZipIOLocalFileDataDescriptor.cs
- NavigationExpr.cs
- MatrixUtil.cs
- CodeAccessPermission.cs
- FtpRequestCacheValidator.cs
- WindowsIdentity.cs
- PrefixQName.cs
- ContainerUIElement3D.cs
- CmsUtils.cs
- TrackBar.cs
- HostProtectionException.cs
- WebPartDisplayModeCancelEventArgs.cs
- WebBaseEventKeyComparer.cs
- SafeSystemMetrics.cs
- AsyncPostBackErrorEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- MachineKeyConverter.cs
- LifetimeServices.cs
- TableParagraph.cs
- TextEditorSelection.cs
- PriorityItem.cs
- QueryStringParameter.cs
- DataControlImageButton.cs
- _ScatterGatherBuffers.cs
- AxHost.cs
- DashStyles.cs
- DataSetMappper.cs
- CompatibleComparer.cs
- DmlSqlGenerator.cs
- HyperlinkAutomationPeer.cs
- InputLanguageCollection.cs
- OleDbConnection.cs
- NumericUpDownAcceleration.cs
- CacheMemory.cs
- DeviceContext.cs
- ConfigurationUtility.cs
- WSFederationHttpBinding.cs
- EventLog.cs
- BinaryConverter.cs
- EndpointAddress.cs
- WindowsNonControl.cs
- ListenerBinder.cs
- DataIdProcessor.cs
- DirectoryNotFoundException.cs
- ProjectionPlanCompiler.cs
- ErrorProvider.cs
- RemoteWebConfigurationHost.cs
- DataFormats.cs
- RawStylusInputReport.cs
- UriSection.cs
- InputScopeNameConverter.cs
- QueryStack.cs
- XhtmlTextWriter.cs
- XmlILOptimizerVisitor.cs
- WeakHashtable.cs
- DataGridViewRowStateChangedEventArgs.cs
- NotifyParentPropertyAttribute.cs
- WebServiceMethodData.cs
- DispatcherOperation.cs
- CommandEventArgs.cs
- WsdlBuildProvider.cs
- WindowManager.cs
- CodeIdentifier.cs
- PolicyStatement.cs
- TextRangeAdaptor.cs
- TextMarkerSource.cs