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
- PaperSize.cs
- DropDownList.cs
- WebPartsPersonalization.cs
- WebServiceHostFactory.cs
- HttpValueCollection.cs
- WebBrowserEvent.cs
- X509CertificateValidator.cs
- HostUtils.cs
- ButtonFlatAdapter.cs
- OuterGlowBitmapEffect.cs
- CaseInsensitiveHashCodeProvider.cs
- __Filters.cs
- DataTemplateSelector.cs
- VisualStyleInformation.cs
- ReadContentAsBinaryHelper.cs
- ProviderConnectionPoint.cs
- DataTableClearEvent.cs
- PathSegmentCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- ResolveInfo.cs
- ToolboxComponentsCreatedEventArgs.cs
- MetabaseReader.cs
- DragStartedEventArgs.cs
- ListCollectionView.cs
- GeneralTransform3DGroup.cs
- FrameworkElement.cs
- DoubleAnimationUsingPath.cs
- StringReader.cs
- WebPartZoneBase.cs
- Model3D.cs
- PageAsyncTask.cs
- ClientBuildManagerCallback.cs
- PrintPageEvent.cs
- TargetConverter.cs
- TextAction.cs
- RNGCryptoServiceProvider.cs
- DoubleUtil.cs
- ClientConfigurationSystem.cs
- XmlLanguage.cs
- FontSourceCollection.cs
- Visual3D.cs
- SafeRightsManagementSessionHandle.cs
- RuntimeTrackingProfile.cs
- WebPartUserCapability.cs
- ReferencedAssembly.cs
- FileDialogCustomPlace.cs
- ApplicationHost.cs
- WebPartExportVerb.cs
- SoapFault.cs
- Win32NamedPipes.cs
- versioninfo.cs
- CqlLexerHelpers.cs
- MenuItemBindingCollection.cs
- DataFieldConverter.cs
- IWorkflowDebuggerService.cs
- DirectoryInfo.cs
- ScanQueryOperator.cs
- ColumnResizeAdorner.cs
- NetSectionGroup.cs
- BooleanAnimationBase.cs
- Trigger.cs
- FormsAuthenticationEventArgs.cs
- Buffer.cs
- DbRetry.cs
- MessageHeaderInfoTraceRecord.cs
- PageCodeDomTreeGenerator.cs
- SessionParameter.cs
- RolePrincipal.cs
- AnnotationResourceCollection.cs
- ElementNotAvailableException.cs
- RestHandlerFactory.cs
- SQLMembershipProvider.cs
- FunctionImportMapping.cs
- TypeConvertions.cs
- LocalBuilder.cs
- DefaultParameterValueAttribute.cs
- ListViewGroupConverter.cs
- IDQuery.cs
- GetPageCompletedEventArgs.cs
- XmlNodeChangedEventArgs.cs
- EventSinkActivity.cs
- Connection.cs
- VirtualDirectoryMapping.cs
- WebCategoryAttribute.cs
- RayMeshGeometry3DHitTestResult.cs
- FileIOPermission.cs
- XNameConverter.cs
- HtmlListAdapter.cs
- StreamReader.cs
- TagPrefixAttribute.cs
- XmlPreloadedResolver.cs
- Debug.cs
- ContentDesigner.cs
- ParallelRangeManager.cs
- HashMembershipCondition.cs
- TextShapeableCharacters.cs
- RequestCacheValidator.cs
- TextEncodedRawTextWriter.cs
- Zone.cs
- Journal.cs