Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / InputReportEventArgs.cs / 1 / InputReportEventArgs.cs
using System;
using MS.Internal.PresentationCore;
namespace System.Windows.Input
{
///
/// The InputReportEventArgs class contains information about an input
/// report that is being processed.
///
[FriendAccessAllowed]
internal class InputReportEventArgs : InputEventArgs
{
///
/// Initializes a new instance of the InputReportEventArgs class.
///
///
/// The input device to associate this input with.
///
///
/// The input report being processed.
///
public InputReportEventArgs(InputDevice inputDevice,
InputReport report) : base(inputDevice, ((report != null) ? report.Timestamp : -1))
{
if (report == null)
throw new ArgumentNullException("report");
_report = report;
}
///
/// Read-only access to the input report being processed.
///
public InputReport Report
{
get {return _report;}
}
///
/// 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)
{
InputReportEventHandler handler = (InputReportEventHandler) genericHandler;
handler(genericTarget, this);
}
private InputReport _report;
}
}
// 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
- DateTimeSerializationSection.cs
- PropertyGridView.cs
- FrameworkRichTextComposition.cs
- IxmlLineInfo.cs
- ModelUIElement3D.cs
- objectquery_tresulttype.cs
- Binding.cs
- HtmlInputText.cs
- Debugger.cs
- MasterPageBuildProvider.cs
- FolderBrowserDialog.cs
- ExtendedProtectionPolicy.cs
- EndpointDiscoveryBehavior.cs
- EventListener.cs
- datacache.cs
- InvalidPrinterException.cs
- DeploymentSection.cs
- ConfigurationFileMap.cs
- OracleDataAdapter.cs
- basenumberconverter.cs
- TypeForwardedToAttribute.cs
- CodeDelegateInvokeExpression.cs
- XmlReaderSettings.cs
- OptimalTextSource.cs
- Parser.cs
- CommandDevice.cs
- ArrayTypeMismatchException.cs
- DocComment.cs
- ConnectorDragDropGlyph.cs
- ComponentEvent.cs
- DeflateStream.cs
- PeerTransportListenAddressConverter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- XPathNodeIterator.cs
- AbsoluteQuery.cs
- ExpressionLink.cs
- InvalidCastException.cs
- XmlIgnoreAttribute.cs
- Viewport3DVisual.cs
- CmsInterop.cs
- ColumnResizeUndoUnit.cs
- NavigatorInput.cs
- GroupBoxRenderer.cs
- CodeDirectoryCompiler.cs
- ComponentEvent.cs
- Codec.cs
- MulticastIPAddressInformationCollection.cs
- NonClientArea.cs
- QueryOpeningEnumerator.cs
- Cursor.cs
- OleDbConnection.cs
- EllipticalNodeOperations.cs
- Math.cs
- _ProxyRegBlob.cs
- DataGridViewColumnEventArgs.cs
- MultiAsyncResult.cs
- ProgressBarBrushConverter.cs
- InfoCardUIAgent.cs
- OleDbError.cs
- UshortList2.cs
- SchemaImporter.cs
- ContainerAction.cs
- StrongNameIdentityPermission.cs
- DeferredElementTreeState.cs
- MessageParameterAttribute.cs
- SwitchLevelAttribute.cs
- DbTransaction.cs
- Transform3D.cs
- TargetControlTypeCache.cs
- BoundColumn.cs
- ProfileSettings.cs
- FactoryId.cs
- VectorValueSerializer.cs
- OdbcTransaction.cs
- EncryptedType.cs
- SmiMetaDataProperty.cs
- ReadOnlyDictionary.cs
- DataBinding.cs
- ContentAlignmentEditor.cs
- ComponentResourceKeyConverter.cs
- ExceptionHandler.cs
- DataGridCellClipboardEventArgs.cs
- QueryContinueDragEventArgs.cs
- RoutedPropertyChangedEventArgs.cs
- CreateRefExpr.cs
- WrappedReader.cs
- DataSourceXmlClassAttribute.cs
- RemoveFromCollection.cs
- TemplateLookupAction.cs
- ParallelTimeline.cs
- CheckBoxStandardAdapter.cs
- WindowsListViewGroupSubsetLink.cs
- ProtocolsInstallComponent.cs
- LinqDataSourceDeleteEventArgs.cs
- RectAnimation.cs
- DropShadowEffect.cs
- TemplatingOptionsDialog.cs
- ArglessEventHandlerProxy.cs
- PostBackOptions.cs
- RemoveStoryboard.cs