Code:
/ 4.0 / 4.0 / 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. 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
- ProtectedProviderSettings.cs
- EncoderFallback.cs
- XmlDocument.cs
- DrawTreeNodeEventArgs.cs
- LiteralTextContainerControlBuilder.cs
- DependencyObjectProvider.cs
- XmlSchemaSequence.cs
- Stackframe.cs
- CodeExporter.cs
- PolicyStatement.cs
- OperationInfoBase.cs
- SQLGuid.cs
- PropertyEmitter.cs
- XmlSchemaSearchPattern.cs
- SimpleFileLog.cs
- Types.cs
- InputScopeManager.cs
- SoapObjectWriter.cs
- odbcmetadatacolumnnames.cs
- ProcessHostFactoryHelper.cs
- PeerNeighborManager.cs
- XmlIterators.cs
- EndpointInstanceProvider.cs
- messageonlyhwndwrapper.cs
- PersonalizableTypeEntry.cs
- ModuleConfigurationInfo.cs
- GridView.cs
- CommandField.cs
- RadioButtonFlatAdapter.cs
- Lookup.cs
- TextBoxView.cs
- DialogResultConverter.cs
- RichTextBoxAutomationPeer.cs
- FileLevelControlBuilderAttribute.cs
- MgmtConfigurationRecord.cs
- LocalFileSettingsProvider.cs
- QueryableFilterRepeater.cs
- AnimationException.cs
- DependencyPropertyAttribute.cs
- ThreadInterruptedException.cs
- SuppressIldasmAttribute.cs
- storepermission.cs
- _TLSstream.cs
- PenThreadPool.cs
- TemplatedControlDesigner.cs
- NamespaceTable.cs
- SafePEFileHandle.cs
- Decimal.cs
- UpdateRecord.cs
- New.cs
- WorkflowInstanceExtensionManager.cs
- MsmqInputMessage.cs
- SqlNotificationEventArgs.cs
- CommandBindingCollection.cs
- Guid.cs
- MulticastDelegate.cs
- GrammarBuilder.cs
- _emptywebproxy.cs
- ShadowGlyph.cs
- XmlDataDocument.cs
- ClientSettingsProvider.cs
- WebPartConnectionsConfigureVerb.cs
- EventLogPermissionAttribute.cs
- MonthChangedEventArgs.cs
- KnownColorTable.cs
- LocalizabilityAttribute.cs
- HttpVersion.cs
- AuthenticationModuleElement.cs
- InternalUserCancelledException.cs
- SQLDateTimeStorage.cs
- DrawingDrawingContext.cs
- AxisAngleRotation3D.cs
- StateMachineWorkflowInstance.cs
- ReplacementText.cs
- RightsManagementEncryptedStream.cs
- WeakHashtable.cs
- XmlSchemaSubstitutionGroup.cs
- CacheModeConverter.cs
- LabelEditEvent.cs
- XmlBoundElement.cs
- ListViewHitTestInfo.cs
- EndEvent.cs
- BaseValidator.cs
- RemotingConfiguration.cs
- IConvertible.cs
- PenContext.cs
- DbConnectionOptions.cs
- ConstructorNeedsTagAttribute.cs
- ColumnReorderedEventArgs.cs
- PanningMessageFilter.cs
- ItemContainerGenerator.cs
- ValueSerializerAttribute.cs
- XmlQualifiedName.cs
- TextRange.cs
- EntityConnectionStringBuilder.cs
- RegionIterator.cs
- sapiproxy.cs
- _ListenerAsyncResult.cs
- ForeignKeyConstraint.cs
- CodeVariableReferenceExpression.cs