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
- NamespaceQuery.cs
- BitmapPalette.cs
- ElementHostPropertyMap.cs
- ObjRef.cs
- TextTreeTextElementNode.cs
- Pen.cs
- InkPresenterAutomationPeer.cs
- RenderOptions.cs
- ReaderContextStackData.cs
- SqlMultiplexer.cs
- SelectedGridItemChangedEvent.cs
- base64Transforms.cs
- CodeConditionStatement.cs
- XmlWrappingWriter.cs
- StreamGeometry.cs
- DbModificationClause.cs
- CheckBoxStandardAdapter.cs
- PrintingPermission.cs
- ExtensibleClassFactory.cs
- TransformDescriptor.cs
- Array.cs
- UniqueIdentifierService.cs
- AssociationTypeEmitter.cs
- TraceUtility.cs
- httpstaticobjectscollection.cs
- CorrelationRequestContext.cs
- ContentValidator.cs
- TransformCollection.cs
- OleAutBinder.cs
- DiscoveryClientElement.cs
- MeasureData.cs
- TraceInternal.cs
- RangeValidator.cs
- ServiceModelConfigurationSectionGroup.cs
- EntityViewGenerationAttribute.cs
- TypeConverterHelper.cs
- ResXBuildProvider.cs
- SendMailErrorEventArgs.cs
- EnumerableRowCollection.cs
- MaskInputRejectedEventArgs.cs
- DataGridViewColumnEventArgs.cs
- CodeMemberField.cs
- DataGridViewRowPostPaintEventArgs.cs
- IdentityNotMappedException.cs
- ArraySubsetEnumerator.cs
- DrawListViewColumnHeaderEventArgs.cs
- CalloutQueueItem.cs
- GridViewUpdatedEventArgs.cs
- XmlSchemaGroup.cs
- DoubleLink.cs
- NativeMethods.cs
- ReadContentAsBinaryHelper.cs
- SystemWebSectionGroup.cs
- CardSpaceShim.cs
- ToolbarAUtomationPeer.cs
- CollectionType.cs
- StyleXamlParser.cs
- SqlTransaction.cs
- SeekStoryboard.cs
- CompModSwitches.cs
- MarkupObject.cs
- Predicate.cs
- DtcInterfaces.cs
- OracleConnectionString.cs
- TextServicesCompartment.cs
- TransactionProtocol.cs
- AddressHeaderCollection.cs
- BrowserTree.cs
- SecurityTokenSerializer.cs
- XmlQualifiedNameTest.cs
- TextEffect.cs
- HtmlFormParameterWriter.cs
- SqlAggregateChecker.cs
- RbTree.cs
- EditingScope.cs
- IisTraceWebEventProvider.cs
- HtmlTernaryTree.cs
- SqlDataReaderSmi.cs
- OutputWindow.cs
- IdentityNotMappedException.cs
- TrustLevel.cs
- QilInvokeEarlyBound.cs
- BaseAsyncResult.cs
- FunctionGenerator.cs
- WebPermission.cs
- Pair.cs
- TimeZone.cs
- ApplicationContext.cs
- NetworkAddressChange.cs
- grammarelement.cs
- FormsAuthenticationConfiguration.cs
- GenericRootAutomationPeer.cs
- HttpConfigurationSystem.cs
- TouchesCapturedWithinProperty.cs
- XmlElementAttribute.cs
- DesignTimeTemplateParser.cs
- ImmutableObjectAttribute.cs
- EmptyImpersonationContext.cs
- Symbol.cs
- LogWriteRestartAreaState.cs