Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputReportEventArgs.cs / 1305600 / 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
- PageThemeParser.cs
- DesignConnection.cs
- WebPartHelpVerb.cs
- XmlBindingWorker.cs
- TextInfo.cs
- TaskHelper.cs
- DataGridViewHeaderCell.cs
- ProfileGroupSettings.cs
- ProcessThreadCollection.cs
- ParameterToken.cs
- DataGridViewCellStateChangedEventArgs.cs
- FormatVersion.cs
- AQNBuilder.cs
- QueueProcessor.cs
- XPathAncestorQuery.cs
- InputManager.cs
- SoundPlayer.cs
- SessionStateItemCollection.cs
- ControlBindingsCollection.cs
- BinaryFormatter.cs
- PageBreakRecord.cs
- CodeComment.cs
- ActiveXSite.cs
- SspiHelper.cs
- XmlILIndex.cs
- CreateSequence.cs
- ApplicationProxyInternal.cs
- DataGridCaption.cs
- Vector3DKeyFrameCollection.cs
- WebPartTransformer.cs
- RSAPKCS1SignatureDeformatter.cs
- IWorkflowDebuggerService.cs
- CacheEntry.cs
- DataGridViewRowsRemovedEventArgs.cs
- SystemIcons.cs
- ToolStripContainer.cs
- FatalException.cs
- WindowsToolbarAsMenu.cs
- PtsHelper.cs
- _NTAuthentication.cs
- UnknownWrapper.cs
- KeyboardEventArgs.cs
- MailMessageEventArgs.cs
- CustomAttributeSerializer.cs
- AsyncOperation.cs
- DataGridViewSelectedColumnCollection.cs
- FontClient.cs
- nulltextcontainer.cs
- SqlUdtInfo.cs
- FileDataSourceCache.cs
- DelegateHelpers.Generated.cs
- Rotation3DAnimation.cs
- ControlBuilderAttribute.cs
- ProjectionCamera.cs
- ActiveXContainer.cs
- ValidatorCompatibilityHelper.cs
- AdRotator.cs
- DtdParser.cs
- ActivationArguments.cs
- xmlformatgeneratorstatics.cs
- CompressEmulationStream.cs
- TypeForwardedToAttribute.cs
- FastEncoder.cs
- ResXResourceWriter.cs
- ProgressPage.cs
- CompilerResults.cs
- GridViewUpdatedEventArgs.cs
- RefExpr.cs
- SoapReflectionImporter.cs
- SchemaAttDef.cs
- PersonalizableAttribute.cs
- ConditionalAttribute.cs
- Journal.cs
- XmlResolver.cs
- CalendarDay.cs
- Hashtable.cs
- StreamUpdate.cs
- DistinctQueryOperator.cs
- WebEvents.cs
- ChannelPool.cs
- SliderAutomationPeer.cs
- HttpModuleActionCollection.cs
- DependentList.cs
- AppModelKnownContentFactory.cs
- UniformGrid.cs
- XmlAttributeProperties.cs
- RoutedUICommand.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- XPathEmptyIterator.cs
- DataObjectFieldAttribute.cs
- XslCompiledTransform.cs
- PerformanceCounterManager.cs
- sapiproxy.cs
- OracleConnectionStringBuilder.cs
- XmlCodeExporter.cs
- RegistrySecurity.cs
- AbsoluteQuery.cs
- IDQuery.cs
- IdnElement.cs
- WebControlAdapter.cs