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
- ViewCellSlot.cs
- XsltCompileContext.cs
- OrderByBuilder.cs
- RandomNumberGenerator.cs
- PointAnimation.cs
- ForEach.cs
- InvokeCompletedEventArgs.cs
- ListDictionaryInternal.cs
- Enum.cs
- InputChannelAcceptor.cs
- CalendarDay.cs
- PartialCachingControl.cs
- SafeProcessHandle.cs
- DBConnectionString.cs
- KernelTypeValidation.cs
- CellCreator.cs
- XmlSerializableWriter.cs
- _LazyAsyncResult.cs
- ListViewUpdatedEventArgs.cs
- DropShadowEffect.cs
- CompressEmulationStream.cs
- IgnoreSection.cs
- InvalidContentTypeException.cs
- HuffModule.cs
- WebServiceAttribute.cs
- ToolStripRendererSwitcher.cs
- PagesChangedEventArgs.cs
- XmlArrayItemAttributes.cs
- TextBoxRenderer.cs
- ExtractorMetadata.cs
- SqlCacheDependencyDatabase.cs
- AvTrace.cs
- DataSetUtil.cs
- ListCollectionView.cs
- JsonFormatGeneratorStatics.cs
- MethodCallConverter.cs
- OpenTypeMethods.cs
- DataGridViewColumnEventArgs.cs
- SettingsSection.cs
- XslNumber.cs
- TextureBrush.cs
- SessionEndingEventArgs.cs
- RegistryKey.cs
- ForAllOperator.cs
- Rotation3D.cs
- SyndicationFeedFormatter.cs
- WorkflowPersistenceService.cs
- FixedPageStructure.cs
- SafeWaitHandle.cs
- WpfKnownTypeInvoker.cs
- LeftCellWrapper.cs
- WindowsFormsSectionHandler.cs
- ProcessHostMapPath.cs
- DragEvent.cs
- SQLDateTime.cs
- SafeNativeMethods.cs
- ValidationPropertyAttribute.cs
- SqlWebEventProvider.cs
- StorageMappingItemCollection.cs
- ParentUndoUnit.cs
- TemplateControlCodeDomTreeGenerator.cs
- PropertyKey.cs
- UserNamePasswordClientCredential.cs
- WmlMobileTextWriter.cs
- RijndaelManagedTransform.cs
- AutoGeneratedField.cs
- LookupBindingPropertiesAttribute.cs
- TextRunCacheImp.cs
- DataRecordInternal.cs
- RolePrincipal.cs
- XmlNamespaceManager.cs
- ConfigurationManager.cs
- SecurityUtils.cs
- StrokeNodeData.cs
- Font.cs
- WebCategoryAttribute.cs
- AspNetSynchronizationContext.cs
- DesignerView.xaml.cs
- UnsettableComboBox.cs
- SoapProtocolImporter.cs
- SymbolEqualComparer.cs
- SqlDataSourceView.cs
- CapacityStreamGeometryContext.cs
- RectAnimationClockResource.cs
- SqlAliaser.cs
- InputProcessorProfiles.cs
- InputLanguageEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- ResourcePermissionBaseEntry.cs
- Rectangle.cs
- EventMap.cs
- formatstringdialog.cs
- X509ServiceCertificateAuthentication.cs
- StickyNote.cs
- QueryExpr.cs
- DbQueryCommandTree.cs
- NullRuntimeConfig.cs
- LinqDataSourceContextData.cs
- RequestUriProcessor.cs
- LabelAutomationPeer.cs