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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConstraintEnumerator.cs
- ListView.cs
- ISAPIApplicationHost.cs
- PersonalizationStateQuery.cs
- RegexNode.cs
- SmtpFailedRecipientException.cs
- ClientProxyGenerator.cs
- userdatakeys.cs
- MediaElement.cs
- ValidationEventArgs.cs
- ToolStripDropDownClosedEventArgs.cs
- CacheSection.cs
- BuilderPropertyEntry.cs
- DtdParser.cs
- MarkerProperties.cs
- HostingEnvironment.cs
- SafeNativeMethods.cs
- CollectionChangedEventManager.cs
- EdmError.cs
- BinaryParser.cs
- XmlReflectionMember.cs
- Enumerable.cs
- BaseTemplateBuildProvider.cs
- SegmentInfo.cs
- SqlCommandSet.cs
- RadioButtonStandardAdapter.cs
- NameTable.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- LayoutSettings.cs
- DataGridTablesFactory.cs
- TemplateXamlTreeBuilder.cs
- XmlCharCheckingReader.cs
- CharEnumerator.cs
- WSHttpBindingBase.cs
- ItemMap.cs
- ImageAnimator.cs
- HeaderElement.cs
- MailAddressCollection.cs
- LayoutEngine.cs
- ColorDialog.cs
- XmlChildEnumerator.cs
- SqlDataSourceCustomCommandEditor.cs
- BufferedOutputStream.cs
- DbMetaDataColumnNames.cs
- ToolTipAutomationPeer.cs
- _IPv6Address.cs
- PropertyInfoSet.cs
- ConnectionOrientedTransportChannelListener.cs
- Calendar.cs
- BeginEvent.cs
- WindowsListViewSubItem.cs
- NamedPipeTransportSecurity.cs
- DocumentGrid.cs
- SHA1.cs
- DataObjectSettingDataEventArgs.cs
- DialogBaseForm.cs
- BinaryUtilClasses.cs
- DtdParser.cs
- DataGridViewCell.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- SQLCharsStorage.cs
- CaseStatementProjectedSlot.cs
- SecurityException.cs
- ClientApiGenerator.cs
- WmpBitmapDecoder.cs
- ExpressionBindingCollection.cs
- SqlWorkflowPersistenceService.cs
- PopupEventArgs.cs
- UmAlQuraCalendar.cs
- GridViewDesigner.cs
- DateTimePicker.cs
- TableLayoutColumnStyleCollection.cs
- OracleColumn.cs
- GridViewRowEventArgs.cs
- OrderByExpression.cs
- DragDrop.cs
- HttpCapabilitiesBase.cs
- BindingExpressionBase.cs
- QueryStatement.cs
- ModulesEntry.cs
- ShapingEngine.cs
- ResXResourceWriter.cs
- DataGridColumnHeaderCollection.cs
- HtmlInputPassword.cs
- DataChangedEventManager.cs
- FontStretches.cs
- FastEncoder.cs
- BuildProvider.cs
- ProcessHostFactoryHelper.cs
- CaseInsensitiveHashCodeProvider.cs
- SafeReadContext.cs
- MenuItemStyleCollection.cs
- HitTestParameters3D.cs
- XamlClipboardData.cs
- MaxValueConverter.cs
- ExpressionConverter.cs
- FixedTextSelectionProcessor.cs
- TemplateInstanceAttribute.cs
- SelectedGridItemChangedEvent.cs
- BitmapPalette.cs