Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputReportEventArgs.cs / 1305600 / 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
- ZipIOFileItemStream.cs
- SystemIPGlobalProperties.cs
- ChildrenQuery.cs
- DrawingVisual.cs
- CalendarDataBindingHandler.cs
- PerformanceCountersElement.cs
- Annotation.cs
- EntityConnection.cs
- DragEventArgs.cs
- DesignerOptionService.cs
- SchemaTableColumn.cs
- XmlSchemaDocumentation.cs
- WebPartVerb.cs
- SafeProcessHandle.cs
- CommonRemoteMemoryBlock.cs
- PolyLineSegment.cs
- ExpressionEditorAttribute.cs
- XmlNodeList.cs
- PolicyManager.cs
- AssemblyInfo.cs
- columnmapkeybuilder.cs
- QuaternionAnimation.cs
- ViewStateException.cs
- RadioButton.cs
- ExpandSegmentCollection.cs
- SerializationObjectManager.cs
- EpmSyndicationContentSerializer.cs
- SecurityResources.cs
- NonParentingControl.cs
- XmlLangPropertyAttribute.cs
- Connector.cs
- ImageUrlEditor.cs
- Drawing.cs
- CorrelationTokenTypeConvertor.cs
- DataGridParentRows.cs
- StackSpiller.cs
- WsatServiceAddress.cs
- VectorCollection.cs
- XmlAttributeCache.cs
- SafePipeHandle.cs
- ClientRuntimeConfig.cs
- Set.cs
- MimeXmlImporter.cs
- DigitalSignature.cs
- SettingsSavedEventArgs.cs
- TemplateGroupCollection.cs
- MulticastDelegate.cs
- ColumnResizeAdorner.cs
- PipelineModuleStepContainer.cs
- RelativeSource.cs
- SafeFileMappingHandle.cs
- ParsedAttributeCollection.cs
- PointIndependentAnimationStorage.cs
- SystemIPv6InterfaceProperties.cs
- ViewStateException.cs
- HttpCookieCollection.cs
- DocumentCollection.cs
- ProvidersHelper.cs
- OracleInternalConnection.cs
- NumberFormatInfo.cs
- SatelliteContractVersionAttribute.cs
- GcSettings.cs
- UnsafeNativeMethods.cs
- Baml6ConstructorInfo.cs
- ColorAnimation.cs
- ComboBoxDesigner.cs
- SqlRowUpdatingEvent.cs
- SqlParameterCollection.cs
- DataGridViewComboBoxColumn.cs
- SoapSchemaImporter.cs
- WMICapabilities.cs
- XmlSerializerNamespaces.cs
- _TimerThread.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ActivityCodeGenerator.cs
- WindowsListViewItemStartMenu.cs
- AttributeQuery.cs
- VariableQuery.cs
- FacetChecker.cs
- PluralizationServiceUtil.cs
- PreviewPrintController.cs
- TransformGroup.cs
- RowUpdatedEventArgs.cs
- PasswordBoxAutomationPeer.cs
- MailDefinition.cs
- CachedTypeface.cs
- HttpPostProtocolReflector.cs
- SqlWorkflowInstanceStore.cs
- DataGridViewControlCollection.cs
- FilterQuery.cs
- Padding.cs
- RtType.cs
- TypeCollectionDesigner.xaml.cs
- LinkedResourceCollection.cs
- ThreadAbortException.cs
- TextOutput.cs
- SetterBaseCollection.cs
- DocumentSequenceHighlightLayer.cs
- ListenerConfig.cs
- _IPv4Address.cs