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
- EndpointNameMessageFilter.cs
- SqlCacheDependency.cs
- CodeRegionDirective.cs
- EventLogTraceListener.cs
- ProcessInputEventArgs.cs
- StateWorkerRequest.cs
- EnumBuilder.cs
- Version.cs
- DrawListViewSubItemEventArgs.cs
- SafeMILHandle.cs
- InstanceKeyView.cs
- ArrangedElementCollection.cs
- TableAdapterManagerHelper.cs
- Operators.cs
- ExpressionEditorAttribute.cs
- XomlDesignerLoader.cs
- Transactions.cs
- TextUtf8RawTextWriter.cs
- ObjectPropertyMapping.cs
- CompModSwitches.cs
- SystemWebExtensionsSectionGroup.cs
- SHA256CryptoServiceProvider.cs
- SqlReferenceCollection.cs
- cryptoapiTransform.cs
- DataRecordObjectView.cs
- PtsContext.cs
- SqlUtil.cs
- namescope.cs
- ScrollEventArgs.cs
- QuaternionIndependentAnimationStorage.cs
- ToolStripEditorManager.cs
- VarRemapper.cs
- webproxy.cs
- EdmItemError.cs
- InheritanceUI.cs
- FontEmbeddingManager.cs
- SelectiveScrollingGrid.cs
- GlobalizationAssembly.cs
- WebPartEventArgs.cs
- DataTable.cs
- uribuilder.cs
- OracleConnectionString.cs
- RtfToXamlLexer.cs
- ActivityDefaults.cs
- HttpHandlersSection.cs
- TraceHandlerErrorFormatter.cs
- TextPointerBase.cs
- CodeGenerator.cs
- WpfWebRequestHelper.cs
- BackgroundFormatInfo.cs
- DragDeltaEventArgs.cs
- LineGeometry.cs
- UnionExpr.cs
- Annotation.cs
- DrawToolTipEventArgs.cs
- PropertyChangedEventArgs.cs
- InvalidOperationException.cs
- JsonSerializer.cs
- Buffer.cs
- IResourceProvider.cs
- ErrorWrapper.cs
- XmlObjectSerializerReadContext.cs
- CodeCatchClause.cs
- DatePicker.cs
- WebPartRestoreVerb.cs
- ImageMapEventArgs.cs
- InvalidOleVariantTypeException.cs
- XPathNodePointer.cs
- Vector3dCollection.cs
- InitializationEventAttribute.cs
- EventMappingSettingsCollection.cs
- DispatcherHooks.cs
- EntityDataSourceViewSchema.cs
- MappingModelBuildProvider.cs
- BeginStoryboard.cs
- Vector3dCollection.cs
- DataSvcMapFileSerializer.cs
- RuleProcessor.cs
- ClipboardProcessor.cs
- ScriptingScriptResourceHandlerSection.cs
- SupportsEventValidationAttribute.cs
- Random.cs
- DataServiceQueryOfT.cs
- StrongNameMembershipCondition.cs
- LineInfo.cs
- LayoutEngine.cs
- HiddenField.cs
- DockEditor.cs
- RegexWorker.cs
- InputMethodStateChangeEventArgs.cs
- SoapHeader.cs
- SimpleLine.cs
- CapabilitiesSection.cs
- SqlNamer.cs
- CompositeDuplexElement.cs
- LocalizeDesigner.cs
- ContractUtils.cs
- ServiceNotStartedException.cs
- ControlAdapter.cs
- FilterQuery.cs