Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ToggleButtonAutomationPeer.cs
- TemplateApplicationHelper.cs
- DataViewSetting.cs
- ProxyGenerationError.cs
- CodeLinePragma.cs
- NetNamedPipeBindingElement.cs
- WebConfigurationManager.cs
- ConditionedDesigner.cs
- XsltArgumentList.cs
- Image.cs
- SkinBuilder.cs
- InfoCardProofToken.cs
- HttpContext.cs
- GeometryValueSerializer.cs
- RotateTransform3D.cs
- Internal.cs
- GeneralTransform2DTo3DTo2D.cs
- SystemWebExtensionsSectionGroup.cs
- ProjectedWrapper.cs
- ReliableChannelBinder.cs
- FontSourceCollection.cs
- FormsAuthenticationEventArgs.cs
- DefaultValueTypeConverter.cs
- LicFileLicenseProvider.cs
- LabelDesigner.cs
- FileLoadException.cs
- NonVisualControlAttribute.cs
- RegistryConfigurationProvider.cs
- StringConverter.cs
- BitmapSource.cs
- IIS7UserPrincipal.cs
- DataSourceCacheDurationConverter.cs
- ServiceOperation.cs
- DataBindingList.cs
- SecurityHeaderElementInferenceEngine.cs
- BufferAllocator.cs
- SubpageParagraph.cs
- Trace.cs
- XPathParser.cs
- GifBitmapDecoder.cs
- PropertyInformationCollection.cs
- IPHostEntry.cs
- CodeMethodReturnStatement.cs
- MetadataArtifactLoaderCompositeResource.cs
- EDesignUtil.cs
- WindowsEditBoxRange.cs
- DebugViewWriter.cs
- BuildTopDownAttribute.cs
- FunctionQuery.cs
- CodeTryCatchFinallyStatement.cs
- StatusBarPanel.cs
- StatusBarDesigner.cs
- DocumentApplication.cs
- EditCommandColumn.cs
- AddressHeaderCollectionElement.cs
- Thumb.cs
- SqlBulkCopyColumnMapping.cs
- ClonableStack.cs
- ServiceInstallComponent.cs
- HorizontalAlignConverter.cs
- Condition.cs
- DesignSurfaceEvent.cs
- GestureRecognitionResult.cs
- VisualStateGroup.cs
- CellLabel.cs
- TextEvent.cs
- ConstNode.cs
- SqlUserDefinedAggregateAttribute.cs
- RelationshipConstraintValidator.cs
- SafeRightsManagementSessionHandle.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- Model3DGroup.cs
- Select.cs
- XmlReflectionImporter.cs
- CriticalHandle.cs
- SortedList.cs
- Soap.cs
- JavaScriptString.cs
- Timer.cs
- BitmapCodecInfo.cs
- FastPropertyAccessor.cs
- MouseWheelEventArgs.cs
- _SecureChannel.cs
- CommandHelper.cs
- DateTimeParse.cs
- InfoCardSymmetricAlgorithm.cs
- TextAutomationPeer.cs
- ToolboxDataAttribute.cs
- DbReferenceCollection.cs
- CharKeyFrameCollection.cs
- Pts.cs
- StructuredCompositeActivityDesigner.cs
- KeyboardEventArgs.cs
- Row.cs
- GenericsInstances.cs
- GeometryModel3D.cs
- ProfilePropertyMetadata.cs
- BrowserInteropHelper.cs
- StringSorter.cs
- ExtensibleClassFactory.cs