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
- EventSetter.cs
- EdmProviderManifest.cs
- TreeNodeMouseHoverEvent.cs
- AllMembershipCondition.cs
- SerialPort.cs
- MediaContext.cs
- StringOutput.cs
- InternalControlCollection.cs
- WebPartTransformerAttribute.cs
- ResourceReader.cs
- X509SubjectKeyIdentifierClause.cs
- Line.cs
- FixedSOMGroup.cs
- DataGridView.cs
- HwndHost.cs
- PingOptions.cs
- _DigestClient.cs
- JoinElimination.cs
- XPathNodeList.cs
- SelectedGridItemChangedEvent.cs
- PropertyTabAttribute.cs
- GridViewUpdatedEventArgs.cs
- PersonalizationAdministration.cs
- SqlAggregateChecker.cs
- GraphicsContext.cs
- List.cs
- TextBox.cs
- SqlHelper.cs
- SerializationUtility.cs
- TransformPattern.cs
- PerformanceCounterPermissionEntry.cs
- ErrorProvider.cs
- TextEndOfSegment.cs
- NumericUpDown.cs
- connectionpool.cs
- SqlTriggerContext.cs
- QueryStringParameter.cs
- AuthenticateEventArgs.cs
- DbDataAdapter.cs
- XamlTypeWithExplicitNamespace.cs
- MappingModelBuildProvider.cs
- SchemaElement.cs
- RectangleGeometry.cs
- SpellerError.cs
- ConstraintManager.cs
- AuthenticationConfig.cs
- DefaultWorkflowLoaderService.cs
- ExtendedPropertyCollection.cs
- ProcessRequestArgs.cs
- CapabilitiesState.cs
- ObjectMemberMapping.cs
- SqlBooleanMismatchVisitor.cs
- BrowserCapabilitiesCompiler.cs
- IdentityManager.cs
- ToolStripPanelRow.cs
- TraceUtility.cs
- InputMethodStateChangeEventArgs.cs
- XPathException.cs
- FixedPageStructure.cs
- StatusBarItemAutomationPeer.cs
- DictionaryManager.cs
- DesignerImageAdapter.cs
- CrossContextChannel.cs
- DbConnectionPoolGroupProviderInfo.cs
- SamlAuthorizationDecisionClaimResource.cs
- ColumnMap.cs
- EmbeddedObject.cs
- base64Transforms.cs
- SafeJobHandle.cs
- FileChangesMonitor.cs
- UnionCqlBlock.cs
- CompareInfo.cs
- FormatterServices.cs
- AsymmetricSignatureFormatter.cs
- WindowsServiceCredential.cs
- XsltContext.cs
- MachineKeySection.cs
- ListControlDesigner.cs
- ProtocolProfile.cs
- Message.cs
- DependencyPropertyKey.cs
- SqlDataSourceStatusEventArgs.cs
- NativeMethodsCLR.cs
- TextEffect.cs
- ControlsConfig.cs
- ExternalDataExchangeClient.cs
- MergeFilterQuery.cs
- DirectoryNotFoundException.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- FixedFindEngine.cs
- UnsafeNativeMethods.cs
- HandleCollector.cs
- UnsafeNativeMethods.cs
- BuildProviderCollection.cs
- UnauthorizedWebPart.cs
- HtmlContainerControl.cs
- StreamingContext.cs
- ToolboxComponentsCreatedEventArgs.cs
- SqlBuilder.cs
- AssemblyFilter.cs