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
- DetailsViewRow.cs
- XmlWriterTraceListener.cs
- EndEvent.cs
- StringKeyFrameCollection.cs
- ListViewGroup.cs
- GeneratedCodeAttribute.cs
- EventTrigger.cs
- CodeNamespaceCollection.cs
- XamlReaderConstants.cs
- NodeFunctions.cs
- SimpleApplicationHost.cs
- QueryPageSettingsEventArgs.cs
- HTTPNotFoundHandler.cs
- SortDescriptionCollection.cs
- CacheRequest.cs
- WindowsImpersonationContext.cs
- RuntimeConfigurationRecord.cs
- ComponentSerializationService.cs
- TrackingStringDictionary.cs
- LogicalCallContext.cs
- ImageBrush.cs
- UnsafeNativeMethods.cs
- BitmapDownload.cs
- ErrorWrapper.cs
- PassportAuthentication.cs
- Int32CAMarshaler.cs
- WebPartDeleteVerb.cs
- ListView.cs
- TypeDescriptionProvider.cs
- ControlSerializer.cs
- WmfPlaceableFileHeader.cs
- GenerateScriptTypeAttribute.cs
- ResourceContainer.cs
- UserControlBuildProvider.cs
- CompiledQuery.cs
- InternalsVisibleToAttribute.cs
- CapabilitiesUse.cs
- ShapingWorkspace.cs
- CodeArgumentReferenceExpression.cs
- ServiceOperationParameter.cs
- ListViewSortEventArgs.cs
- DbMetaDataFactory.cs
- XmlNodeChangedEventArgs.cs
- ManipulationDeltaEventArgs.cs
- JavaScriptObjectDeserializer.cs
- TextClipboardData.cs
- DuplexChannelFactory.cs
- WebPartCatalogAddVerb.cs
- Viewport3DAutomationPeer.cs
- XmlSchemaComplexType.cs
- XomlDesignerLoader.cs
- PopupRootAutomationPeer.cs
- DesignParameter.cs
- FormatPage.cs
- BmpBitmapEncoder.cs
- TimeSpanMinutesConverter.cs
- OpenTypeLayoutCache.cs
- EventListener.cs
- PlainXmlWriter.cs
- ReflectionUtil.cs
- LicenseContext.cs
- MaskedTextProvider.cs
- Helper.cs
- DataGridCaption.cs
- NamespaceEmitter.cs
- WebSysDisplayNameAttribute.cs
- Currency.cs
- WorkflowOperationBehavior.cs
- NetCodeGroup.cs
- RepeaterItem.cs
- ContextInformation.cs
- DateTimeOffset.cs
- TemplateBindingExtension.cs
- SurrogateDataContract.cs
- MergeFailedEvent.cs
- ProfileInfo.cs
- RotateTransform3D.cs
- DataGridPreparingCellForEditEventArgs.cs
- WinHttpWebProxyFinder.cs
- SoapFormatter.cs
- BaseCollection.cs
- DesignerDataSchemaClass.cs
- SettingsAttributeDictionary.cs
- PriorityBinding.cs
- RubberbandSelector.cs
- BaseParser.cs
- webbrowsersite.cs
- Parser.cs
- EventDescriptor.cs
- DataPagerFieldItem.cs
- MembershipSection.cs
- DataGridViewCellStyleConverter.cs
- XmlDocumentType.cs
- Latin1Encoding.cs
- OutputCacheSettings.cs
- ProfilePropertySettings.cs
- DataGridTableCollection.cs
- _OSSOCK.cs
- EntityDataSourceChangedEventArgs.cs
- DesignTimeTemplateParser.cs