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
- NativeRecognizer.cs
- TextRunCache.cs
- SafeNativeMethods.cs
- ContextMenuService.cs
- GreenMethods.cs
- RecipientInfo.cs
- BuildProviderCollection.cs
- PropagatorResult.cs
- MetabaseServerConfig.cs
- GridViewColumnHeaderAutomationPeer.cs
- PathNode.cs
- TextContainerChangedEventArgs.cs
- XmlRawWriterWrapper.cs
- ImageProxy.cs
- ResourceDescriptionAttribute.cs
- DefaultTextStore.cs
- KeyValueInternalCollection.cs
- GridItemCollection.cs
- ScriptMethodAttribute.cs
- AudioException.cs
- SocketPermission.cs
- SqlDataSourceCache.cs
- ProgressBar.cs
- MorphHelper.cs
- MultitargetingHelpers.cs
- WhitespaceRuleReader.cs
- Soap12ProtocolReflector.cs
- ExpressionsCollectionConverter.cs
- SqlFlattener.cs
- HandleScope.cs
- DataConnectionHelper.cs
- DataBinding.cs
- SiteMapNode.cs
- TemplateGroupCollection.cs
- DbDataRecord.cs
- PrimitiveSchema.cs
- ParentUndoUnit.cs
- EventMappingSettingsCollection.cs
- ServerValidateEventArgs.cs
- EdmFunction.cs
- GenericWebPart.cs
- TableRowGroup.cs
- XmlSignificantWhitespace.cs
- XamlWriterExtensions.cs
- MimeMapping.cs
- RegisteredScript.cs
- SafeMILHandle.cs
- DeferredSelectedIndexReference.cs
- ProfileBuildProvider.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- OutputBuffer.cs
- ViewValidator.cs
- SafeBitVector32.cs
- basecomparevalidator.cs
- ValidationService.cs
- ITreeGenerator.cs
- FormsAuthenticationModule.cs
- Task.cs
- ControlPaint.cs
- PrintPreviewDialog.cs
- ContextStack.cs
- WebErrorHandler.cs
- TransformerInfoCollection.cs
- BooleanKeyFrameCollection.cs
- AlignmentYValidation.cs
- HttpCacheParams.cs
- CollectionBase.cs
- BitmapImage.cs
- Binding.cs
- SecondaryViewProvider.cs
- propertytag.cs
- EntitySqlQueryCacheKey.cs
- MethodBody.cs
- StorageScalarPropertyMapping.cs
- TypeElementCollection.cs
- BinaryWriter.cs
- IApplicationTrustManager.cs
- ObjectDataSourceMethodEventArgs.cs
- ServiceOperationUIEditor.cs
- EntityPropertyMappingAttribute.cs
- TextTreeNode.cs
- SequentialUshortCollection.cs
- PropertyRecord.cs
- TextEditorThreadLocalStore.cs
- BasicExpressionVisitor.cs
- XmlDataImplementation.cs
- nulltextcontainer.cs
- SqlClientWrapperSmiStream.cs
- DetailsViewRow.cs
- XpsResource.cs
- EpmSourcePathSegment.cs
- DocumentXmlWriter.cs
- KnownIds.cs
- ControlBuilderAttribute.cs
- SafeProcessHandle.cs
- CodeSnippetExpression.cs
- OleAutBinder.cs
- ListViewCancelEventArgs.cs
- HttpCacheVaryByContentEncodings.cs
- CalloutQueueItem.cs