Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- AtlasWeb.Designer.cs
- LogArchiveSnapshot.cs
- AccessViolationException.cs
- PopupControlService.cs
- NonBatchDirectoryCompiler.cs
- UserMapPath.cs
- Image.cs
- SecurityContext.cs
- CalendarModeChangedEventArgs.cs
- OneOfElement.cs
- Partitioner.cs
- RadioButton.cs
- SmiXetterAccessMap.cs
- COM2PictureConverter.cs
- ActivityWithResultValueSerializer.cs
- FormViewUpdateEventArgs.cs
- DataGridViewLinkCell.cs
- SoapSchemaImporter.cs
- SerialReceived.cs
- GlyphRun.cs
- AudioStateChangedEventArgs.cs
- TypeElementCollection.cs
- NeutralResourcesLanguageAttribute.cs
- OracleInternalConnection.cs
- HtmlTextArea.cs
- ServiceBusyException.cs
- DateTimeUtil.cs
- Source.cs
- RowSpanVector.cs
- RoutedEventArgs.cs
- autovalidator.cs
- LockedActivityGlyph.cs
- WindowsFormsSectionHandler.cs
- SessionIDManager.cs
- Command.cs
- BufferedGenericXmlSecurityToken.cs
- AnimationException.cs
- XmlHelper.cs
- EventSetterHandlerConverter.cs
- ListControl.cs
- ConfigurationManager.cs
- ObjectViewFactory.cs
- PeerInputChannel.cs
- COM2EnumConverter.cs
- HtmlEmptyTagControlBuilder.cs
- CultureTableRecord.cs
- LOSFormatter.cs
- SynchronizationLockException.cs
- webbrowsersite.cs
- WebDisplayNameAttribute.cs
- _ConnectStream.cs
- ParameterBuilder.cs
- AutomationProperties.cs
- PackWebRequest.cs
- x509store.cs
- SystemTcpConnection.cs
- FontDriver.cs
- LogExtentCollection.cs
- OletxEnlistment.cs
- ForwardPositionQuery.cs
- RelativeSource.cs
- ChooseAction.cs
- CodeValidator.cs
- ObjectPropertyMapping.cs
- PrintEvent.cs
- InlineObject.cs
- FlowDocumentPage.cs
- DesignerSerializationOptionsAttribute.cs
- WebPartCollection.cs
- ContentFilePart.cs
- X509Certificate.cs
- RawStylusActions.cs
- MediaContextNotificationWindow.cs
- LineGeometry.cs
- SqlConnection.cs
- ConsumerConnectionPoint.cs
- ValidationException.cs
- SqlInternalConnectionSmi.cs
- ObjectItemLoadingSessionData.cs
- BufferedStream.cs
- SymbolDocumentGenerator.cs
- LeaseManager.cs
- ProfessionalColorTable.cs
- SettingsProperty.cs
- FlowDocumentScrollViewer.cs
- DetailsViewDesigner.cs
- NestPullup.cs
- TdsRecordBufferSetter.cs
- LayoutTable.cs
- XmlImplementation.cs
- XamlTypeMapper.cs
- TreeNodeCollection.cs
- StatusBar.cs
- ZipIOExtraFieldElement.cs
- JapaneseCalendar.cs
- NativeCppClassAttribute.cs
- TextDecorationCollection.cs
- HttpHandlersSection.cs
- GuidelineCollection.cs
- Form.cs