Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputReportEventArgs.cs / 1305600 / 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
- MetadataItemEmitter.cs
- SortFieldComparer.cs
- ItemsControl.cs
- TextPattern.cs
- XmlObjectSerializerContext.cs
- Memoizer.cs
- DataService.cs
- Brushes.cs
- SEHException.cs
- HttpResponse.cs
- SimpleType.cs
- Tool.cs
- MergeLocalizationDirectives.cs
- MultiSelectRootGridEntry.cs
- DiscoveryDocumentSerializer.cs
- HyperLinkField.cs
- PriorityBindingExpression.cs
- DocumentPageViewAutomationPeer.cs
- FloatUtil.cs
- ComponentChangingEvent.cs
- _SafeNetHandles.cs
- BasicCellRelation.cs
- VarRemapper.cs
- CodeDomDecompiler.cs
- NetworkInterface.cs
- StyleModeStack.cs
- LineBreakRecord.cs
- InboundActivityHelper.cs
- Bitmap.cs
- WindowsRebar.cs
- RelationshipFixer.cs
- DataGridViewEditingControlShowingEventArgs.cs
- AlgoModule.cs
- ComponentCommands.cs
- PersonalizationEntry.cs
- XdrBuilder.cs
- ChannelTracker.cs
- KeyFrames.cs
- WebPartZoneBase.cs
- ToolStripArrowRenderEventArgs.cs
- DataGridAutomationPeer.cs
- TypeInitializationException.cs
- SafeNativeMethodsMilCoreApi.cs
- PageThemeBuildProvider.cs
- ProjectionRewriter.cs
- WindowsPrincipal.cs
- Transactions.cs
- NonBatchDirectoryCompiler.cs
- ConfigurationStrings.cs
- DotAtomReader.cs
- Point3DCollection.cs
- StubHelpers.cs
- ExpressionServices.cs
- Utilities.cs
- TypeLoader.cs
- GetPolicyDetailsRequest.cs
- isolationinterop.cs
- TreeIterators.cs
- KeyConstraint.cs
- DecimalStorage.cs
- DbBuffer.cs
- DBNull.cs
- ServerType.cs
- SplitterPanel.cs
- Tokenizer.cs
- WorkflowServiceBuildProvider.cs
- WebControlsSection.cs
- TextViewSelectionProcessor.cs
- MetadataItem.cs
- ResourceContainer.cs
- WebPartTransformer.cs
- Cursor.cs
- LinqDataSourceSelectEventArgs.cs
- SmiEventStream.cs
- basecomparevalidator.cs
- DocumentSchemaValidator.cs
- AuthorizationRuleCollection.cs
- StylusEditingBehavior.cs
- ToolStripRenderEventArgs.cs
- latinshape.cs
- WebServiceHandler.cs
- XmlEntityReference.cs
- TraceSource.cs
- HtmlFormAdapter.cs
- Interlocked.cs
- ResourceAttributes.cs
- SqlProviderUtilities.cs
- StringFreezingAttribute.cs
- NullRuntimeConfig.cs
- PageStatePersister.cs
- manifestimages.cs
- PermissionListSet.cs
- EntityDataSourceChangedEventArgs.cs
- JulianCalendar.cs
- SqlExpressionNullability.cs
- XmlDocumentType.cs
- EUCJPEncoding.cs
- StateDesigner.LayoutSelectionGlyph.cs
- printdlgexmarshaler.cs
- MarkupCompilePass2.cs