Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- mil_sdk_version.cs
- SmiEventStream.cs
- VirtualPath.cs
- StrongNamePublicKeyBlob.cs
- LabelEditEvent.cs
- CryptoStream.cs
- Literal.cs
- DependencyProperty.cs
- ReadOnlyCollection.cs
- RenderTargetBitmap.cs
- DataServiceBuildProvider.cs
- XNameTypeConverter.cs
- FieldValue.cs
- StateManagedCollection.cs
- IntegerValidator.cs
- BrowserCapabilitiesFactory.cs
- DesignerVerbCollection.cs
- BitmapEffectDrawingContent.cs
- SimpleBitVector32.cs
- BeginStoryboard.cs
- AutomationPropertyInfo.cs
- Command.cs
- ConfigurationValidatorBase.cs
- DodSequenceMerge.cs
- TextServicesDisplayAttribute.cs
- FontFaceLayoutInfo.cs
- WsatStrings.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TextCharacters.cs
- _IPv6Address.cs
- PriorityItem.cs
- DES.cs
- FontStretches.cs
- HwndSourceKeyboardInputSite.cs
- LookupBindingPropertiesAttribute.cs
- userdatakeys.cs
- QueryPageSettingsEventArgs.cs
- MenuCommands.cs
- MultiView.cs
- StreamGeometry.cs
- unsafenativemethodstextservices.cs
- FtpRequestCacheValidator.cs
- NgenServicingAttributes.cs
- WsdlBuildProvider.cs
- RoleService.cs
- _OSSOCK.cs
- CachedFontFamily.cs
- ExpandCollapsePattern.cs
- PropertySegmentSerializer.cs
- ServiceControllerDesigner.cs
- SwitchElementsCollection.cs
- MailAddressCollection.cs
- ObjectListFieldCollection.cs
- SystemIcmpV6Statistics.cs
- WebPartTransformerCollection.cs
- QuaternionAnimationUsingKeyFrames.cs
- PropertyMap.cs
- XPathDescendantIterator.cs
- UnauthorizedAccessException.cs
- TimeStampChecker.cs
- GeneralTransform3DGroup.cs
- BindingGroup.cs
- CompensationHandlingFilter.cs
- SqlDataSourceParameterParser.cs
- Models.cs
- Certificate.cs
- UnhandledExceptionEventArgs.cs
- TextEditorTyping.cs
- DATA_BLOB.cs
- Stroke2.cs
- CookieProtection.cs
- TreeIterators.cs
- TextModifierScope.cs
- ColumnHeaderCollectionEditor.cs
- TreeNodeEventArgs.cs
- EventDescriptor.cs
- HtmlSelect.cs
- FileEnumerator.cs
- EntityKeyElement.cs
- BufferedGraphicsManager.cs
- ListCollectionView.cs
- Executor.cs
- DataGridViewColumnConverter.cs
- NativeMethods.cs
- DataGridRow.cs
- ManagedWndProcTracker.cs
- HttpRawResponse.cs
- CellTreeNode.cs
- HttpInputStream.cs
- RawStylusInputCustomData.cs
- PtsHost.cs
- FormView.cs
- ErrorView.xaml.cs
- InputBindingCollection.cs
- BevelBitmapEffect.cs
- WindowsFormsLinkLabel.cs
- PrintDialogException.cs
- PersonalizationStateQuery.cs
- TripleDES.cs
- FontEmbeddingManager.cs