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
- FileDialog.cs
- CellQuery.cs
- DataServiceException.cs
- DataSetUtil.cs
- AppSettingsReader.cs
- DoubleConverter.cs
- InheritedPropertyChangedEventArgs.cs
- GlyphShapingProperties.cs
- EmissiveMaterial.cs
- ResourceManager.cs
- QueryHandler.cs
- NoneExcludedImageIndexConverter.cs
- CellCreator.cs
- MonthCalendarDesigner.cs
- MetadataImporterQuotas.cs
- BamlCollectionHolder.cs
- ToolboxItem.cs
- OpenFileDialog.cs
- TripleDESCryptoServiceProvider.cs
- SqlLiftWhereClauses.cs
- SettingsSection.cs
- CachingHintValidation.cs
- CookielessHelper.cs
- BuildManager.cs
- ThreadAbortException.cs
- followingsibling.cs
- SafeFileMappingHandle.cs
- HtmlWindowCollection.cs
- HttpDictionary.cs
- DataServiceProviderMethods.cs
- DnsPermission.cs
- ControllableStoryboardAction.cs
- SubclassTypeValidator.cs
- RowUpdatedEventArgs.cs
- TextDecorationCollectionConverter.cs
- SqlDataReaderSmi.cs
- TransformerTypeCollection.cs
- BindingContext.cs
- TextElementEditingBehaviorAttribute.cs
- ListenerConfig.cs
- DispatcherOperation.cs
- ObjectListShowCommandsEventArgs.cs
- JavaScriptString.cs
- Opcode.cs
- GrammarBuilderPhrase.cs
- PathFigureCollectionConverter.cs
- ContainerFilterService.cs
- WebMessageEncodingBindingElement.cs
- _Events.cs
- XmlSerializableServices.cs
- BigInt.cs
- RangeBaseAutomationPeer.cs
- ActiveXContainer.cs
- Stroke2.cs
- AttributeCollection.cs
- ChoiceConverter.cs
- SafeEventHandle.cs
- BitmapEffectDrawing.cs
- RegexParser.cs
- StorageConditionPropertyMapping.cs
- AttributeProviderAttribute.cs
- StrongNameKeyPair.cs
- KeyPullup.cs
- ToolStripPanelRenderEventArgs.cs
- HMACSHA1.cs
- DesignTimeValidationFeature.cs
- _LocalDataStoreMgr.cs
- ButtonColumn.cs
- AddInEnvironment.cs
- DateTime.cs
- KnowledgeBase.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- InputLangChangeEvent.cs
- RenderData.cs
- WebControlAdapter.cs
- StickyNoteContentControl.cs
- CharacterBuffer.cs
- ConfigurationManagerHelper.cs
- UTF32Encoding.cs
- SamlSecurityToken.cs
- ColumnMapVisitor.cs
- SchemaCollectionCompiler.cs
- CodeVariableReferenceExpression.cs
- FormViewRow.cs
- RuleSettingsCollection.cs
- MessageEventSubscriptionService.cs
- EpmCustomContentWriterNodeData.cs
- CompositeDesignerAccessibleObject.cs
- VsPropertyGrid.cs
- HtmlToClrEventProxy.cs
- NavigatorOutput.cs
- ResolveDuplexAsyncResult.cs
- RequestFactory.cs
- ProjectionAnalyzer.cs
- EventOpcode.cs
- ProfileParameter.cs
- BoundsDrawingContextWalker.cs
- OverloadGroupAttribute.cs
- BypassElementCollection.cs
- EpmContentDeSerializer.cs