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
- RoutedCommand.cs
- RuleInfoComparer.cs
- UndoUnit.cs
- InvalidOleVariantTypeException.cs
- documentation.cs
- SmtpCommands.cs
- MsmqInputChannel.cs
- ProcessHostConfigUtils.cs
- XmlTypeMapping.cs
- PageResolution.cs
- MulticastOption.cs
- ControlTemplate.cs
- BufferedStream.cs
- DataControlHelper.cs
- FormViewRow.cs
- SimpleMailWebEventProvider.cs
- ExternalException.cs
- ColumnHeader.cs
- Stream.cs
- DoubleConverter.cs
- ContractType.cs
- TypeUtil.cs
- DataGridPageChangedEventArgs.cs
- PropertyPathConverter.cs
- DrawingVisual.cs
- XmlNodeList.cs
- wgx_commands.cs
- TypeInfo.cs
- Border.cs
- HatchBrush.cs
- HtmlSelectionListAdapter.cs
- Figure.cs
- DataSvcMapFileSerializer.cs
- OdbcConnectionOpen.cs
- DataColumn.cs
- DataListItemEventArgs.cs
- OdbcCommandBuilder.cs
- AdapterUtil.cs
- keycontainerpermission.cs
- ColumnBinding.cs
- InternalConfigHost.cs
- ItemsControl.cs
- DefaultAutoFieldGenerator.cs
- Annotation.cs
- EditorPartChrome.cs
- CategoryNameCollection.cs
- ReflectionUtil.cs
- ProcessHost.cs
- ProcessInfo.cs
- XmlSchemaExporter.cs
- Merger.cs
- mactripleDES.cs
- ColorBlend.cs
- EntityDataSourceDataSelection.cs
- ObjectParameter.cs
- Stackframe.cs
- CustomTrackingRecord.cs
- XmlHierarchyData.cs
- SourceSwitch.cs
- ListViewItem.cs
- RootBrowserWindow.cs
- BamlLocalizer.cs
- TextRunCache.cs
- ModifiableIteratorCollection.cs
- TrackingRecordPreFilter.cs
- DataServicePagingProviderWrapper.cs
- SequentialActivityDesigner.cs
- WebPartZoneCollection.cs
- HttpModuleAction.cs
- CalendarDateChangedEventArgs.cs
- BooleanKeyFrameCollection.cs
- ContainerVisual.cs
- EntityDataSourceDataSelection.cs
- MD5.cs
- PropertyEntry.cs
- StreamSecurityUpgradeAcceptorBase.cs
- TreeView.cs
- PropertyValueChangedEvent.cs
- SqlCacheDependency.cs
- QuaternionAnimation.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ReflectionTypeLoadException.cs
- MessageDirection.cs
- NameTable.cs
- RedBlackList.cs
- DiagnosticTraceSource.cs
- ErrorTableItemStyle.cs
- RuleRef.cs
- ReachFixedPageSerializer.cs
- ConfigurationValue.cs
- Crypto.cs
- SpinWait.cs
- ListDictionary.cs
- OperationDescriptionCollection.cs
- RectIndependentAnimationStorage.cs
- CollectionConverter.cs
- AggregatePushdown.cs
- StateMachineAction.cs
- ReadOnlyTernaryTree.cs
- DebugView.cs