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 / 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. 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
- MultiBinding.cs
- Point3DCollection.cs
- Executor.cs
- BlobPersonalizationState.cs
- BaseValidatorDesigner.cs
- Token.cs
- XPathItem.cs
- StackBuilderSink.cs
- SecurityElement.cs
- BindingExpressionBase.cs
- GridViewSortEventArgs.cs
- FormsAuthenticationModule.cs
- GradientBrush.cs
- StrongNameMembershipCondition.cs
- ContainerFilterService.cs
- ToolStripComboBox.cs
- DesignerView.xaml.cs
- NameValueCollection.cs
- OutputCacheModule.cs
- SpecularMaterial.cs
- RegionInfo.cs
- GeneralTransform3DTo2D.cs
- CannotUnloadAppDomainException.cs
- SystemIPInterfaceProperties.cs
- SerializationInfoEnumerator.cs
- GuidelineSet.cs
- SemanticBasicElement.cs
- DeleteIndexBinder.cs
- ColorDialog.cs
- GeneralTransform3DCollection.cs
- Clock.cs
- SqlComparer.cs
- ManipulationVelocities.cs
- ArraySubsetEnumerator.cs
- HeaderedItemsControl.cs
- XPathPatternParser.cs
- GeometryCollection.cs
- EncodingDataItem.cs
- UrlRoutingModule.cs
- JapaneseLunisolarCalendar.cs
- NativeWindow.cs
- WebPartAuthorizationEventArgs.cs
- HttpResponseBase.cs
- BindingEntityInfo.cs
- SQLChars.cs
- SchemaLookupTable.cs
- XmlByteStreamReader.cs
- CfgParser.cs
- TraceContextRecord.cs
- SqlDataSourceSelectingEventArgs.cs
- SyndicationDeserializer.cs
- codemethodreferenceexpression.cs
- ControlCodeDomSerializer.cs
- BlobPersonalizationState.cs
- ServicePoint.cs
- SetterBase.cs
- BufferedGraphicsManager.cs
- SQLDecimal.cs
- TextRunProperties.cs
- WhitespaceRuleReader.cs
- XmlUtf8RawTextWriter.cs
- QuaternionAnimation.cs
- ItemAutomationPeer.cs
- coordinatorscratchpad.cs
- RoutedEventConverter.cs
- AppLevelCompilationSectionCache.cs
- ObjectQuery.cs
- DataServiceQueryOfT.cs
- DataViewManager.cs
- ObjectToModelValueConverter.cs
- TransformProviderWrapper.cs
- XPathAncestorQuery.cs
- DataListItem.cs
- IUnknownConstantAttribute.cs
- WithStatement.cs
- ImageIndexConverter.cs
- XmlDomTextWriter.cs
- ExtensionQuery.cs
- InheritanceRules.cs
- SqlParameterizer.cs
- NetworkAddressChange.cs
- DiscreteKeyFrames.cs
- SrgsElementFactoryCompiler.cs
- Window.cs
- EditingMode.cs
- SmiMetaData.cs
- QilChoice.cs
- ImageCollectionEditor.cs
- GroupLabel.cs
- SystemIPv4InterfaceProperties.cs
- ImageListUtils.cs
- CodeObject.cs
- AssemblyBuilderData.cs
- XmlBindingWorker.cs
- CapabilitiesSection.cs
- PaintValueEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- ArithmeticException.cs
- SizeKeyFrameCollection.cs
- SqlNamer.cs