Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SoapTypeAttribute.cs
- ImportCatalogPart.cs
- ProfilePropertyMetadata.cs
- AnimationClock.cs
- xdrvalidator.cs
- Compiler.cs
- HttpCacheVaryByContentEncodings.cs
- EntityDataSource.cs
- NopReturnReader.cs
- SharedPersonalizationStateInfo.cs
- AsnEncodedData.cs
- MasterPageCodeDomTreeGenerator.cs
- RegexRunnerFactory.cs
- DataGridViewCellCancelEventArgs.cs
- RegexCompilationInfo.cs
- DocumentViewer.cs
- TextSelectionProcessor.cs
- GlyphTypeface.cs
- MemberMaps.cs
- ReferenceSchema.cs
- ThicknessKeyFrameCollection.cs
- OleDbEnumerator.cs
- MetaChildrenColumn.cs
- WebPartVerb.cs
- RegexRunner.cs
- ThicknessAnimationUsingKeyFrames.cs
- CommandEventArgs.cs
- PublisherMembershipCondition.cs
- JsonXmlDataContract.cs
- _FtpControlStream.cs
- ProfessionalColors.cs
- ConsumerConnectionPointCollection.cs
- MenuItemStyle.cs
- COM2FontConverter.cs
- Operand.cs
- COSERVERINFO.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- StylusLogic.cs
- RelatedView.cs
- CryptoKeySecurity.cs
- DataGridViewHitTestInfo.cs
- DataKeyPropertyAttribute.cs
- EntityViewGenerator.cs
- ListViewGroupItemCollection.cs
- DeclaredTypeValidator.cs
- GeneratedCodeAttribute.cs
- SoapParser.cs
- ProxyElement.cs
- Input.cs
- ChangePasswordDesigner.cs
- ExpandableObjectConverter.cs
- CodeRemoveEventStatement.cs
- SocketAddress.cs
- EmptyEnumerator.cs
- GlyphManager.cs
- WsatAdminException.cs
- CheckableControlBaseAdapter.cs
- HitTestFilterBehavior.cs
- AsyncContentLoadedEventArgs.cs
- PathStreamGeometryContext.cs
- WorkflowRuntimeServiceElementCollection.cs
- FrameworkContextData.cs
- Currency.cs
- CalendarAutomationPeer.cs
- SqlGenericUtil.cs
- SystemNetworkInterface.cs
- StackSpiller.Temps.cs
- InkPresenter.cs
- ApplicationGesture.cs
- Pointer.cs
- ProviderUtil.cs
- ServiceHostFactory.cs
- SectionUpdates.cs
- ProbeDuplexAsyncResult.cs
- DataRowComparer.cs
- InternalSafeNativeMethods.cs
- DefaultSerializationProviderAttribute.cs
- LineServicesRun.cs
- InProcStateClientManager.cs
- DataGridViewTopLeftHeaderCell.cs
- Ref.cs
- XmlDataSource.cs
- KeyProperty.cs
- NewArrayExpression.cs
- RenderData.cs
- EntityContainerEntitySetDefiningQuery.cs
- Image.cs
- DescriptionAttribute.cs
- BindingValueChangedEventArgs.cs
- SqlConnectionStringBuilder.cs
- SeekableMessageNavigator.cs
- CompressedStack.cs
- OpCopier.cs
- SoapRpcMethodAttribute.cs
- FormsAuthenticationConfiguration.cs
- Viewport3DAutomationPeer.cs
- ProgressBarRenderer.cs
- BaseDataBoundControl.cs
- KeyboardNavigation.cs
- DbParameterHelper.cs