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
- KnownTypesHelper.cs
- ContentElementAutomationPeer.cs
- OutputCacheProfileCollection.cs
- TransportListener.cs
- InstanceKeyNotReadyException.cs
- CrossSiteScriptingValidation.cs
- SiteOfOriginContainer.cs
- Helpers.cs
- WindowHelperService.cs
- HandleCollector.cs
- DataGridTableCollection.cs
- StorageScalarPropertyMapping.cs
- SafeNativeMethods.cs
- CheckBoxStandardAdapter.cs
- ColorContext.cs
- SqlCrossApplyToCrossJoin.cs
- InheritanceContextChangedEventManager.cs
- _TransmitFileOverlappedAsyncResult.cs
- IssuedSecurityTokenProvider.cs
- SqlRecordBuffer.cs
- XmlAttributes.cs
- MembershipSection.cs
- VariableExpressionConverter.cs
- DataGridViewCheckBoxColumn.cs
- ImageListDesigner.cs
- ControlBindingsCollection.cs
- DataGridViewCellValueEventArgs.cs
- MetadataItemSerializer.cs
- MILUtilities.cs
- QuadraticBezierSegment.cs
- HwndSourceParameters.cs
- StructuredTypeEmitter.cs
- EntityWrapperFactory.cs
- DateTimeFormat.cs
- RequestSecurityToken.cs
- OleDbTransaction.cs
- ITreeGenerator.cs
- Set.cs
- CapabilitiesUse.cs
- SpellerHighlightLayer.cs
- ExpressionBuilderContext.cs
- WizardPanel.cs
- SiteMap.cs
- User.cs
- TransformDescriptor.cs
- keycontainerpermission.cs
- ResourceLoader.cs
- Rfc4050KeyFormatter.cs
- PropertyKey.cs
- ProxyGenerationError.cs
- SafeHandle.cs
- ScrollChrome.cs
- OdbcConnection.cs
- InfiniteTimeSpanConverter.cs
- AuthenticationManager.cs
- WindowsEditBox.cs
- TableLayoutStyle.cs
- LightweightCodeGenerator.cs
- Rijndael.cs
- PrintDocument.cs
- httpserverutility.cs
- ZipPackagePart.cs
- MetadataItemSerializer.cs
- Rectangle.cs
- ResourceWriter.cs
- MailMessageEventArgs.cs
- PointHitTestResult.cs
- Ray3DHitTestResult.cs
- WeakHashtable.cs
- UnitySerializationHolder.cs
- CreateCardRequest.cs
- RecordsAffectedEventArgs.cs
- ManualResetEvent.cs
- KeyGestureConverter.cs
- OptionalColumn.cs
- WpfXamlLoader.cs
- SubMenuStyleCollection.cs
- WebPartVerbCollection.cs
- designeractionlistschangedeventargs.cs
- __TransparentProxy.cs
- AttributeData.cs
- GeometryHitTestParameters.cs
- DataGridViewControlCollection.cs
- AttachmentService.cs
- SqlFunctions.cs
- MruCache.cs
- UpdatePanelTriggerCollection.cs
- ApplicationBuildProvider.cs
- PrePrepareMethodAttribute.cs
- WebPartAuthorizationEventArgs.cs
- WebSysDescriptionAttribute.cs
- TableLayoutCellPaintEventArgs.cs
- ObjectMemberMapping.cs
- PackageFilter.cs
- PropertyMap.cs
- WebBrowserPermission.cs
- KeyToListMap.cs
- ZipQueryOperator.cs
- SqlDeflator.cs
- TextServicesCompartmentEventSink.cs