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
- TimelineGroup.cs
- SafeNativeHandle.cs
- MethodCallTranslator.cs
- ClientBuildManagerCallback.cs
- PowerModeChangedEventArgs.cs
- QilStrConcatenator.cs
- UrlMappingCollection.cs
- ForwardPositionQuery.cs
- DragDropHelper.cs
- DataListItemEventArgs.cs
- Win32Exception.cs
- ListViewDeleteEventArgs.cs
- AutomationPropertyInfo.cs
- ImmutableObjectAttribute.cs
- RecordConverter.cs
- LineBreak.cs
- SecurityChannelListener.cs
- CompareInfo.cs
- NetNamedPipeBinding.cs
- PropertyBuilder.cs
- MailMessageEventArgs.cs
- BitmapEffect.cs
- SelectionRange.cs
- SerialPort.cs
- TypeUsage.cs
- CorrelationValidator.cs
- NonVisualControlAttribute.cs
- TreeNodeClickEventArgs.cs
- TagPrefixInfo.cs
- ValueChangedEventManager.cs
- CollectionChangeEventArgs.cs
- ExpressionList.cs
- Transform3DGroup.cs
- AmbientProperties.cs
- XmlWriterDelegator.cs
- SchemaImporterExtensionsSection.cs
- MessageQueueConverter.cs
- ScalarRestriction.cs
- KeyConstraint.cs
- TableCell.cs
- ExtensionMethods.cs
- DynamicValidatorEventArgs.cs
- DiscriminatorMap.cs
- ItemsControl.cs
- ContentElement.cs
- TextElement.cs
- BinaryReader.cs
- FixedPage.cs
- TypeToTreeConverter.cs
- ExceptionHelpers.cs
- InkPresenterAutomationPeer.cs
- ObjectPersistData.cs
- Privilege.cs
- ArcSegment.cs
- TextClipboardData.cs
- grammarelement.cs
- UITypeEditor.cs
- ManagedFilter.cs
- PrimitiveXmlSerializers.cs
- QuaternionAnimation.cs
- WebServicesInteroperability.cs
- XmlObjectSerializerWriteContext.cs
- ObjectDataSourceView.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- SettingsPropertyIsReadOnlyException.cs
- TransformDescriptor.cs
- SqlTransaction.cs
- DataTableCollection.cs
- MD5CryptoServiceProvider.cs
- OpenTypeLayoutCache.cs
- AttributeCollection.cs
- WebControlsSection.cs
- XmlNotation.cs
- Geometry.cs
- FixedHyperLink.cs
- DataServiceRequestOfT.cs
- SecurityContextTokenCache.cs
- MappingSource.cs
- ListViewGroup.cs
- TextDpi.cs
- IPHostEntry.cs
- EncodingInfo.cs
- WebProxyScriptElement.cs
- CultureSpecificStringDictionary.cs
- HttpCookieCollection.cs
- InstrumentationTracker.cs
- NonParentingControl.cs
- PersonalizationEntry.cs
- GridViewUpdateEventArgs.cs
- WindowsMenu.cs
- SQLInt64Storage.cs
- DataGridHeaderBorder.cs
- ContainerParagraph.cs
- ButtonColumn.cs
- ITextView.cs
- ProgressBarBrushConverter.cs
- HorizontalAlignConverter.cs
- JapaneseCalendar.cs
- DataGridViewCellCancelEventArgs.cs
- EventWaitHandle.cs