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
- ContractTypeNameCollection.cs
- CallTemplateAction.cs
- CharacterBufferReference.cs
- TextServicesProperty.cs
- LocalizationComments.cs
- AlphaSortedEnumConverter.cs
- Int16.cs
- RemoteDebugger.cs
- ObjectListCommandCollection.cs
- WebContentFormatHelper.cs
- XsdCachingReader.cs
- HitTestParameters.cs
- CngAlgorithmGroup.cs
- CalendarTable.cs
- SerializationInfoEnumerator.cs
- ObjectCacheSettings.cs
- Style.cs
- StateMachineAction.cs
- DiscardableAttribute.cs
- CommandBindingCollection.cs
- Tablet.cs
- Calendar.cs
- TemplateApplicationHelper.cs
- ButtonField.cs
- GridViewColumnHeader.cs
- DesignerActionVerbItem.cs
- UserControl.cs
- BindingExpression.cs
- MetafileHeaderWmf.cs
- AffineTransform3D.cs
- RunClient.cs
- ObjectListGeneralPage.cs
- EntityContainerRelationshipSet.cs
- FormattedTextSymbols.cs
- WebPartTracker.cs
- XmlMemberMapping.cs
- Accessors.cs
- ParameterToken.cs
- TransformerInfoCollection.cs
- EntityDataSourceState.cs
- ThicknessConverter.cs
- PowerModeChangedEventArgs.cs
- LineGeometry.cs
- CompositeDuplexElement.cs
- ReflectionPermission.cs
- AssociationSetMetadata.cs
- XsdDuration.cs
- ZoneLinkButton.cs
- CapabilitiesSection.cs
- AxisAngleRotation3D.cs
- ContainerControl.cs
- PagesSection.cs
- ImmutableCollection.cs
- CharacterMetrics.cs
- ClientData.cs
- DispatchWrapper.cs
- ColorTranslator.cs
- _ServiceNameStore.cs
- ProcessHostConfigUtils.cs
- TypeConverterAttribute.cs
- MasterPage.cs
- AutomationElementCollection.cs
- ThemeConfigurationDialog.cs
- BasePattern.cs
- WebPartTransformer.cs
- Column.cs
- DataTablePropertyDescriptor.cs
- PocoEntityKeyStrategy.cs
- SinglePageViewer.cs
- SessionMode.cs
- ConditionalAttribute.cs
- SubtreeProcessor.cs
- DataGridAutomationPeer.cs
- ConnectorSelectionGlyph.cs
- ListBox.cs
- ManagementNamedValueCollection.cs
- ColumnCollection.cs
- ImageMetadata.cs
- UnicastIPAddressInformationCollection.cs
- SchemaElement.cs
- InputLanguage.cs
- XmlEventCache.cs
- OverflowException.cs
- ConstraintEnumerator.cs
- SystemDropShadowChrome.cs
- MenuTracker.cs
- Bitmap.cs
- ImageAutomationPeer.cs
- GroupLabel.cs
- SchemaName.cs
- AsyncStreamReader.cs
- SHA384Managed.cs
- HandlerBase.cs
- ClientEventManager.cs
- KeyConverter.cs
- DiscoveryClientDocuments.cs
- RoutedUICommand.cs
- XmlSchemaDocumentation.cs
- Stackframe.cs
- DispatcherOperation.cs