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
- PersistenceProviderElement.cs
- NameSpaceExtractor.cs
- InkPresenterAutomationPeer.cs
- StorageMappingFragment.cs
- OrderedDictionaryStateHelper.cs
- CheckBoxBaseAdapter.cs
- COM2TypeInfoProcessor.cs
- AsymmetricAlgorithm.cs
- Thread.cs
- TypeHelper.cs
- HtmlTableRowCollection.cs
- ReplacementText.cs
- EnumValAlphaComparer.cs
- BrowserDefinition.cs
- TypeDescriptionProviderAttribute.cs
- SchemaDeclBase.cs
- PropertyDescriptorGridEntry.cs
- ChildTable.cs
- String.cs
- DynamicResourceExtension.cs
- HiddenField.cs
- ConnectionsZone.cs
- counter.cs
- HttpWebResponse.cs
- MergePropertyDescriptor.cs
- WorkerRequest.cs
- HtmlTableRow.cs
- HtmlHistory.cs
- TextRunTypographyProperties.cs
- ResourceContainer.cs
- FixedDocumentSequencePaginator.cs
- ClientSideQueueItem.cs
- EndpointConfigContainer.cs
- WebPartZone.cs
- GenerateScriptTypeAttribute.cs
- ReflectionPermission.cs
- ObjectItemCollection.cs
- TypefaceMap.cs
- SupportingTokenDuplexChannel.cs
- TileBrush.cs
- StorageEntitySetMapping.cs
- FormViewModeEventArgs.cs
- DataGridViewCheckBoxCell.cs
- MetadataArtifactLoaderCompositeResource.cs
- EventBuilder.cs
- Predicate.cs
- MouseButtonEventArgs.cs
- WindowsImpersonationContext.cs
- ArgumentOutOfRangeException.cs
- XmlArrayAttribute.cs
- MsmqVerifier.cs
- SqlLiftWhereClauses.cs
- Accessible.cs
- ModifierKeysConverter.cs
- ParseElement.cs
- ISessionStateStore.cs
- TypeElement.cs
- IIS7UserPrincipal.cs
- EntityViewGenerationConstants.cs
- ProxyWebPartConnectionCollection.cs
- CharAnimationUsingKeyFrames.cs
- Run.cs
- PrimitiveDataContract.cs
- COM2ExtendedUITypeEditor.cs
- GridErrorDlg.cs
- MergablePropertyAttribute.cs
- Odbc32.cs
- KeyPullup.cs
- AccessedThroughPropertyAttribute.cs
- OleDbCommand.cs
- ConnectionInterfaceCollection.cs
- PageBuildProvider.cs
- WebZoneDesigner.cs
- odbcmetadatacollectionnames.cs
- PlainXmlWriter.cs
- RemotingService.cs
- TextCompositionEventArgs.cs
- SqlDataSourceView.cs
- FormViewModeEventArgs.cs
- NetworkInformationPermission.cs
- DefaultObjectMappingItemCollection.cs
- DataGridState.cs
- PasswordTextContainer.cs
- XmlValidatingReaderImpl.cs
- AppDomainCompilerProxy.cs
- SetStoryboardSpeedRatio.cs
- XPathNodeInfoAtom.cs
- EncodingInfo.cs
- WebPartVerbCollection.cs
- MSAAWinEventWrap.cs
- CollectionBase.cs
- StyleXamlParser.cs
- UserControlParser.cs
- TrackingRecord.cs
- FragmentQuery.cs
- ScriptControlManager.cs
- DeferredReference.cs
- TextSelectionHelper.cs
- BindingGraph.cs
- XsltContext.cs