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
- ParallelTimeline.cs
- RootProfilePropertySettingsCollection.cs
- AnnouncementEventArgs.cs
- EntityDataSourceReferenceGroup.cs
- EventSourceCreationData.cs
- ValidatingCollection.cs
- DiscoveryClientOutputChannel.cs
- DialogWindow.cs
- unsafeIndexingFilterStream.cs
- InputManager.cs
- InterleavedZipPartStream.cs
- LeaseManager.cs
- PeerFlooder.cs
- CompositeDataBoundControl.cs
- OpCellTreeNode.cs
- ParallelLoopState.cs
- FixedStringLookup.cs
- VectorAnimationBase.cs
- NodeLabelEditEvent.cs
- NavigationWindowAutomationPeer.cs
- BitmapImage.cs
- WebPartMenuStyle.cs
- Light.cs
- DesignTimeParseData.cs
- TypeDescriptor.cs
- Soap12FormatExtensions.cs
- WebBrowser.cs
- InputScopeConverter.cs
- xmlfixedPageInfo.cs
- OneWayChannelFactory.cs
- CodeBlockBuilder.cs
- AsyncStreamReader.cs
- RegularExpressionValidator.cs
- CodeGeneratorAttribute.cs
- Panel.cs
- NegationPusher.cs
- odbcmetadatacolumnnames.cs
- PixelFormat.cs
- CustomActivityDesigner.cs
- BitmapImage.cs
- DefaultHttpHandler.cs
- HotSpot.cs
- TextPointer.cs
- GenerateHelper.cs
- ItemsControlAutomationPeer.cs
- FlowNode.cs
- DebugView.cs
- OptimisticConcurrencyException.cs
- BitmapDownload.cs
- WebPartTransformer.cs
- ChannelManagerService.cs
- DrawingContextDrawingContextWalker.cs
- XamlToRtfParser.cs
- metrodevice.cs
- _SafeNetHandles.cs
- DrawingContextDrawingContextWalker.cs
- DBSchemaTable.cs
- PermissionSetEnumerator.cs
- DisplayMemberTemplateSelector.cs
- WebPartUserCapability.cs
- HtmlSelect.cs
- Base64Encoding.cs
- SettingsPropertyWrongTypeException.cs
- PenThreadWorker.cs
- Size3DValueSerializer.cs
- ProfessionalColors.cs
- IOException.cs
- RegexWriter.cs
- SiteOfOriginContainer.cs
- LabelLiteral.cs
- StylusPointPropertyInfo.cs
- PackagePartCollection.cs
- CollectionViewGroupRoot.cs
- PropertyChangingEventArgs.cs
- ListViewSortEventArgs.cs
- StatusBarItem.cs
- AnonymousIdentificationSection.cs
- SrgsElement.cs
- SqlInternalConnectionSmi.cs
- XPathNode.cs
- PolicyLevel.cs
- ResourceDefaultValueAttribute.cs
- EnumMember.cs
- MarkupCompilePass2.cs
- XmlReflectionImporter.cs
- CssClassPropertyAttribute.cs
- WebReference.cs
- ResourceProviderFactory.cs
- InitializationEventAttribute.cs
- SocketInformation.cs
- DataGridCellInfo.cs
- DirectionalAction.cs
- EntityContainerEntitySet.cs
- SequenceDesigner.cs
- EncodingStreamWrapper.cs
- StateBag.cs
- LayoutEditorPart.cs
- OperationPerformanceCounters.cs
- SessionSwitchEventArgs.cs
- PropertyValueUIItem.cs