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
- ProfileGroupSettings.cs
- XmlSchemaSearchPattern.cs
- CodePropertyReferenceExpression.cs
- TypeUsage.cs
- MouseOverProperty.cs
- CompositeActivityTypeDescriptor.cs
- BoundPropertyEntry.cs
- TransactionsSectionGroup.cs
- CodeSnippetStatement.cs
- BooleanStorage.cs
- ExtentKey.cs
- DiffuseMaterial.cs
- DataGridViewIntLinkedList.cs
- ToolboxItemCollection.cs
- AdditionalEntityFunctions.cs
- ResXFileRef.cs
- BinaryNegotiation.cs
- FixedNode.cs
- KnownBoxes.cs
- PropertyInformation.cs
- TranslateTransform.cs
- DateTimeUtil.cs
- UnicodeEncoding.cs
- DbProviderServices.cs
- DispatchChannelSink.cs
- XXXOnTypeBuilderInstantiation.cs
- BindingsCollection.cs
- DetailsViewDeletedEventArgs.cs
- ServiceDescriptionData.cs
- EventHandlersDesigner.cs
- ListViewDeletedEventArgs.cs
- CryptoStream.cs
- Model3DCollection.cs
- XpsSerializationManagerAsync.cs
- XmlAttributeAttribute.cs
- ProcessActivityTreeOptions.cs
- VirtualPathUtility.cs
- TransformConverter.cs
- ConstraintConverter.cs
- NestPullup.cs
- CacheModeConverter.cs
- ConfigurationProperty.cs
- TypeUtil.cs
- QilSortKey.cs
- Permission.cs
- MobileControlsSection.cs
- ToolboxComponentsCreatingEventArgs.cs
- ModelUIElement3D.cs
- SoapHeaders.cs
- DataViewManager.cs
- ExceptionUtil.cs
- ErrorRuntimeConfig.cs
- TextEvent.cs
- Util.cs
- WebPartConnectionsConnectVerb.cs
- ServiceObjectContainer.cs
- DoubleCollectionConverter.cs
- PageThemeBuildProvider.cs
- loginstatus.cs
- StringHelper.cs
- ProgressBarHighlightConverter.cs
- LinearGradientBrush.cs
- TrailingSpaceComparer.cs
- KeyGestureConverter.cs
- ReferenceSchema.cs
- WebControlsSection.cs
- ReadWriteObjectLock.cs
- SerialPinChanges.cs
- Inflater.cs
- SqlTopReducer.cs
- SystemResources.cs
- PermissionAttributes.cs
- CommandCollectionEditor.cs
- CodeMemberMethod.cs
- SqlTransaction.cs
- NullableConverter.cs
- TcpHostedTransportConfiguration.cs
- FlowSwitch.cs
- CngProvider.cs
- StylusSystemGestureEventArgs.cs
- UpdateExpressionVisitor.cs
- VariableModifiersHelper.cs
- _ScatterGatherBuffers.cs
- LicenseContext.cs
- FindSimilarActivitiesVerb.cs
- FilterElement.cs
- OdbcConnectionFactory.cs
- OleDbCommand.cs
- EditorZone.cs
- UserNameSecurityTokenParameters.cs
- securestring.cs
- ReliableSessionBindingElement.cs
- DeflateStream.cs
- MexHttpsBindingCollectionElement.cs
- ProviderSettings.cs
- DbMetaDataCollectionNames.cs
- TransformDescriptor.cs
- MinMaxParagraphWidth.cs
- EntityDataSourceState.cs
- BinaryVersion.cs