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
- SettingsPropertyWrongTypeException.cs
- SystemTcpConnection.cs
- RoleGroupCollection.cs
- CopyEncoder.cs
- XmlSignatureProperties.cs
- XmlWrappingWriter.cs
- SynchronizedDispatch.cs
- SecurityTokenTypes.cs
- DataGridColumnReorderingEventArgs.cs
- WebException.cs
- QuotedPrintableStream.cs
- SiteMapNodeCollection.cs
- UnionQueryOperator.cs
- CannotUnloadAppDomainException.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DynamicResourceExtension.cs
- NetworkStream.cs
- Compilation.cs
- DataTrigger.cs
- FormsIdentity.cs
- LinqToSqlWrapper.cs
- ThrowOnMultipleAssignment.cs
- TcpStreams.cs
- SQlBooleanStorage.cs
- TemplateParser.cs
- WindowsSlider.cs
- SqlProfileProvider.cs
- _ListenerResponseStream.cs
- ProxyGenerator.cs
- XPathBinder.cs
- LeafCellTreeNode.cs
- ThumbAutomationPeer.cs
- AccessDataSourceView.cs
- SHA1.cs
- DesignerVerb.cs
- ReflectEventDescriptor.cs
- CheckBox.cs
- StorageMappingFragment.cs
- XmlAnyAttributeAttribute.cs
- StylusPointProperties.cs
- ThemeInfoAttribute.cs
- GlobalItem.cs
- StylusButtonCollection.cs
- ParserStreamGeometryContext.cs
- DropTarget.cs
- CompilationPass2TaskInternal.cs
- SmiTypedGetterSetter.cs
- ContentValidator.cs
- SettingsAttributeDictionary.cs
- BlurEffect.cs
- SecurityUniqueId.cs
- StringExpressionSet.cs
- FormatterConverter.cs
- StylusShape.cs
- CommandLineParser.cs
- ExpressionVisitor.cs
- SmtpDigestAuthenticationModule.cs
- SecurityTokenException.cs
- ContainerParagraph.cs
- OrderedDictionary.cs
- OdbcRowUpdatingEvent.cs
- ConfigXmlSignificantWhitespace.cs
- LongMinMaxAggregationOperator.cs
- ApplicationProxyInternal.cs
- FixedDocumentSequencePaginator.cs
- WinEventHandler.cs
- TimeoutValidationAttribute.cs
- QilReference.cs
- Ipv6Element.cs
- UnsafeNativeMethods.cs
- DateTimeOffsetConverter.cs
- Sequence.cs
- DbCommandTree.cs
- HwndAppCommandInputProvider.cs
- AppModelKnownContentFactory.cs
- Sequence.cs
- WorkflowEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- ClientBuildManagerCallback.cs
- WorkflowInlining.cs
- Token.cs
- XmlNamespaceDeclarationsAttribute.cs
- PersonalizablePropertyEntry.cs
- WebBrowserNavigatingEventHandler.cs
- SiteMapHierarchicalDataSourceView.cs
- Converter.cs
- ellipse.cs
- StaticExtension.cs
- MediaContextNotificationWindow.cs
- HitTestDrawingContextWalker.cs
- TextDecorations.cs
- QueryResults.cs
- TableRow.cs
- HostingPreferredMapPath.cs
- IncomingWebResponseContext.cs
- Utils.cs
- Baml2006ReaderSettings.cs
- XmlSchemaAll.cs
- SimpleHandlerBuildProvider.cs
- SetStateDesigner.cs