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
- MetadataArtifactLoaderFile.cs
- XmlSchemaIdentityConstraint.cs
- DbDataSourceEnumerator.cs
- WaveHeader.cs
- DecimalAnimationUsingKeyFrames.cs
- ClientBuildManagerCallback.cs
- UIElement3D.cs
- Translator.cs
- Roles.cs
- IDispatchConstantAttribute.cs
- RunClient.cs
- TableRow.cs
- InternalsVisibleToAttribute.cs
- DateTime.cs
- ColorConvertedBitmapExtension.cs
- SessionIDManager.cs
- DataColumnMappingCollection.cs
- DemultiplexingDispatchMessageFormatter.cs
- SafeCoTaskMem.cs
- SmtpTransport.cs
- IntSecurity.cs
- EdmComplexTypeAttribute.cs
- MemberInfoSerializationHolder.cs
- HttpCookiesSection.cs
- DependencySource.cs
- SurrogateDataContract.cs
- SpeakCompletedEventArgs.cs
- MenuRenderer.cs
- DiagnosticsConfigurationHandler.cs
- ServiceNotStartedException.cs
- xmlfixedPageInfo.cs
- SizeIndependentAnimationStorage.cs
- HttpWrapper.cs
- XPathPatternParser.cs
- ForceCopyBuildProvider.cs
- NullableDecimalAverageAggregationOperator.cs
- Sentence.cs
- SQLInt16Storage.cs
- TimeSpanOrInfiniteConverter.cs
- MSAAEventDispatcher.cs
- UseManagedPresentationBindingElementImporter.cs
- BitmapData.cs
- PackagingUtilities.cs
- ObjectDataSourceMethodEventArgs.cs
- SchemaImporter.cs
- WebScriptServiceHost.cs
- AdapterUtil.cs
- InputProcessorProfilesLoader.cs
- TileBrush.cs
- Simplifier.cs
- SingleTagSectionHandler.cs
- HtmlGenericControl.cs
- FormViewPagerRow.cs
- SpecialTypeDataContract.cs
- DbConnectionPoolIdentity.cs
- selecteditemcollection.cs
- ConfigPathUtility.cs
- WebBrowserHelper.cs
- ThreadAbortException.cs
- TableLayoutColumnStyleCollection.cs
- ValueTable.cs
- ReachFixedDocumentSerializer.cs
- HttpWriter.cs
- ErrorRuntimeConfig.cs
- CultureSpecificCharacterBufferRange.cs
- FormsAuthenticationCredentials.cs
- StringConverter.cs
- EventLog.cs
- BrowserCapabilitiesCodeGenerator.cs
- WmlLinkAdapter.cs
- HandlerFactoryCache.cs
- XmlSerializationReader.cs
- DataComponentGenerator.cs
- GraphicsContext.cs
- ObjectItemLoadingSessionData.cs
- TreeView.cs
- ToolStripSettings.cs
- MetadataFile.cs
- WSFederationHttpBindingElement.cs
- StorageBasedPackageProperties.cs
- CalendarDay.cs
- ToolStripDropDown.cs
- ISCIIEncoding.cs
- ListBoxItemWrapperAutomationPeer.cs
- EntityContainerEmitter.cs
- AbstractDataSvcMapFileLoader.cs
- StandardRuntimeEnumValidatorAttribute.cs
- UriTemplateLiteralQueryValue.cs
- XmlTextReader.cs
- TraceSwitch.cs
- ChildDocumentBlock.cs
- TableCell.cs
- DesignTableCollection.cs
- Propagator.ExtentPlaceholderCreator.cs
- UpdateEventArgs.cs
- ScriptControl.cs
- DbReferenceCollection.cs
- SafeRegistryHandle.cs
- MLangCodePageEncoding.cs
- SortFieldComparer.cs