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
- BitmapFrameEncode.cs
- TypeToken.cs
- Win32SafeHandles.cs
- DataTableCollection.cs
- OrderedEnumerableRowCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- ManagedIStream.cs
- SiteMapSection.cs
- NestedContainer.cs
- XmlCharCheckingReader.cs
- ProgressBarHighlightConverter.cs
- PrintDocument.cs
- LabelLiteral.cs
- TableHeaderCell.cs
- FormsAuthenticationConfiguration.cs
- BamlRecordHelper.cs
- UxThemeWrapper.cs
- RegexFCD.cs
- DetailsViewPageEventArgs.cs
- TextCompositionManager.cs
- SystemPens.cs
- BuildProvider.cs
- ParenthesizePropertyNameAttribute.cs
- RIPEMD160.cs
- DispatcherFrame.cs
- ScriptReference.cs
- ResourceIDHelper.cs
- ExpressionLink.cs
- XmlAnyElementAttributes.cs
- AuthenticationServiceManager.cs
- Unit.cs
- OAVariantLib.cs
- _ShellExpression.cs
- DesignTimeTemplateParser.cs
- TransactionOptions.cs
- DataGrid.cs
- ReferencedCollectionType.cs
- Rect3DConverter.cs
- Inflater.cs
- KeyToListMap.cs
- Schema.cs
- WebPartTransformer.cs
- PageThemeParser.cs
- FileLoadException.cs
- WindowsAuthenticationModule.cs
- GeneralTransform3D.cs
- DesignTimeTemplateParser.cs
- SchemaElementLookUpTable.cs
- SetterBase.cs
- sqlser.cs
- DataGridViewCellPaintingEventArgs.cs
- EntityDataSourceUtil.cs
- SeekableReadStream.cs
- PeerCollaboration.cs
- TreeNodeBinding.cs
- QilInvoke.cs
- EntityTransaction.cs
- AccessDataSourceView.cs
- BridgeDataRecord.cs
- Confirm.cs
- RemotingServices.cs
- GenericXmlSecurityToken.cs
- FontStyles.cs
- _OSSOCK.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ValidatorCompatibilityHelper.cs
- WebPartVerbsEventArgs.cs
- EditableLabelControl.cs
- PolicyLevel.cs
- WrappedIUnknown.cs
- Expander.cs
- XmlAttributeCollection.cs
- Model3DGroup.cs
- HttpProfileBase.cs
- TypeTypeConverter.cs
- CodeParameterDeclarationExpression.cs
- RootBuilder.cs
- SqlDependencyListener.cs
- SqlDataSourceWizardForm.cs
- BitmapImage.cs
- JoinCqlBlock.cs
- LinkedResource.cs
- DateTimeSerializationSection.cs
- SqlNotificationRequest.cs
- SqlBulkCopy.cs
- TabletDevice.cs
- SafeArrayRankMismatchException.cs
- DataGridViewRowPostPaintEventArgs.cs
- ReadOnlyDictionary.cs
- ForceCopyBuildProvider.cs
- CodeCompileUnit.cs
- CodeChecksumPragma.cs
- COM2IProvidePropertyBuilderHandler.cs
- CqlBlock.cs
- DataSourceCache.cs
- ConnectivityStatus.cs
- ImpersonationContext.cs
- CellQuery.cs
- XamlGridLengthSerializer.cs
- AdRotator.cs