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
- FileDialog_Vista.cs
- MetadataItemSerializer.cs
- LocatorBase.cs
- ColorAnimationUsingKeyFrames.cs
- HandlerBase.cs
- CopyNodeSetAction.cs
- BrowsableAttribute.cs
- InputScopeNameConverter.cs
- FocusChangedEventArgs.cs
- DataControlField.cs
- AppearanceEditorPart.cs
- WebPermission.cs
- OptimalTextSource.cs
- EntityType.cs
- CrossContextChannel.cs
- FormViewRow.cs
- OracleLob.cs
- ConnectionInterfaceCollection.cs
- CodeComment.cs
- EndpointInfoCollection.cs
- GridViewUpdateEventArgs.cs
- WorkflowApplicationCompletedEventArgs.cs
- DataSourceView.cs
- HScrollProperties.cs
- JsonMessageEncoderFactory.cs
- BaseTemplateParser.cs
- ObjectManager.cs
- DataSourceCacheDurationConverter.cs
- XmlSubtreeReader.cs
- ExtendedProtectionPolicy.cs
- SecurityKeyType.cs
- SQLBytesStorage.cs
- ClassData.cs
- TextPointerBase.cs
- ExtensionFile.cs
- PictureBoxDesigner.cs
- AssociationSetMetadata.cs
- ColorContextHelper.cs
- ShapeTypeface.cs
- ListItemParagraph.cs
- Component.cs
- UnmanagedBitmapWrapper.cs
- DataSetMappper.cs
- FaultDesigner.cs
- GlyphShapingProperties.cs
- BaseDataBoundControl.cs
- WebPartDeleteVerb.cs
- RectAnimationClockResource.cs
- SQLStringStorage.cs
- PointHitTestParameters.cs
- InkCollectionBehavior.cs
- BoolExpr.cs
- NumericPagerField.cs
- GenericTypeParameterConverter.cs
- DateTimeFormat.cs
- BamlTreeNode.cs
- TranslateTransform.cs
- WindowsToolbarItemAsMenuItem.cs
- ReadOnlyHierarchicalDataSourceView.cs
- LabelLiteral.cs
- PartBasedPackageProperties.cs
- PreviewKeyDownEventArgs.cs
- XmlEnumAttribute.cs
- Timeline.cs
- Roles.cs
- SchemaElement.cs
- DeleteWorkflowOwnerCommand.cs
- PersistChildrenAttribute.cs
- RecommendedAsConfigurableAttribute.cs
- QueryParameter.cs
- ActivityFunc.cs
- TranslateTransform3D.cs
- LogStore.cs
- BasicExpandProvider.cs
- Marshal.cs
- WebPartZone.cs
- DataGridViewLinkColumn.cs
- WebUtil.cs
- HttpDictionary.cs
- OdbcCommandBuilder.cs
- MissingSatelliteAssemblyException.cs
- TagMapCollection.cs
- PageCache.cs
- Column.cs
- SourceInterpreter.cs
- SystemInformation.cs
- ProxyGenerationError.cs
- TextDocumentView.cs
- StatusBar.cs
- HtmlEncodedRawTextWriter.cs
- TrackingServices.cs
- Rectangle.cs
- DictionarySectionHandler.cs
- DataGridRowsPresenter.cs
- PerSessionInstanceContextProvider.cs
- ServicesUtilities.cs
- KerberosRequestorSecurityToken.cs
- SslStream.cs
- SafeThreadHandle.cs
- FaultDescription.cs