Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputEventArgs.cs / 1305600 / InputEventArgs.cs
using System.Collections; using System; using System.Security; using MS.Internal.PresentationCore; // for FriendAccessAllowed namespace System.Windows.Input { ////// The InputEventArgs class represents a type of RoutedEventArgs that /// are relevant to all input events. /// [FriendAccessAllowed ] // expose UserInitiated public class InputEventArgs : RoutedEventArgs { ////// Initializes a new instance of the InputEventArgs class. /// /// /// The input device to associate with this event. /// /// /// The time when the input occured. /// public InputEventArgs(InputDevice inputDevice, int timestamp) { /* inputDevice parameter being null is valid*/ /* timestamp parameter is valuetype, need not be checked */ _inputDevice = inputDevice; _timestamp = timestamp; } ////// Read-only access to the input device that initiated this /// event. /// public InputDevice Device { get {return _inputDevice;} internal set {_inputDevice = value;} } ////// Read-only access to the input timestamp. /// public int Timestamp { get {return _timestamp;} } ////// 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) { InputEventHandler handler = (InputEventHandler) genericHandler; handler(genericTarget, this); } private InputDevice _inputDevice; private static int _timestamp; } } // 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
- MediaTimeline.cs
- ConfigurationSection.cs
- SQLMembershipProvider.cs
- MachineKeyConverter.cs
- RegistrationContext.cs
- BitmapCodecInfo.cs
- XmlTextReaderImpl.cs
- GregorianCalendar.cs
- DesigntimeLicenseContext.cs
- WebPartConnectionsDisconnectVerb.cs
- ThousandthOfEmRealPoints.cs
- ImageCodecInfoPrivate.cs
- AssemblyCache.cs
- FileDataSourceCache.cs
- UpdateEventArgs.cs
- HScrollBar.cs
- PartitionedStreamMerger.cs
- GridViewCommandEventArgs.cs
- XDRSchema.cs
- RenderDataDrawingContext.cs
- KeyInstance.cs
- MultiAsyncResult.cs
- ResolveNameEventArgs.cs
- Visual.cs
- XmlDataSourceView.cs
- SqlAggregateChecker.cs
- Debug.cs
- ValidationEventArgs.cs
- GeneralTransform2DTo3DTo2D.cs
- PopOutPanel.cs
- AppDomain.cs
- ManagedWndProcTracker.cs
- MachineSettingsSection.cs
- lengthconverter.cs
- DataSet.cs
- OutputScopeManager.cs
- diagnosticsswitches.cs
- XPathNavigatorReader.cs
- InternalConfigSettingsFactory.cs
- WindowsIPAddress.cs
- XNodeNavigator.cs
- DataServiceQuery.cs
- MemoryFailPoint.cs
- ClrProviderManifest.cs
- __Error.cs
- EndPoint.cs
- FlowDocumentReader.cs
- ExeConfigurationFileMap.cs
- TableParagraph.cs
- _SSPISessionCache.cs
- SelectQueryOperator.cs
- MenuScrollingVisibilityConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- Variant.cs
- PathFigureCollection.cs
- RankException.cs
- documentsequencetextview.cs
- FileUtil.cs
- Vector3DAnimation.cs
- RuntimeHandles.cs
- EpmTargetPathSegment.cs
- PowerModeChangedEventArgs.cs
- VerticalAlignConverter.cs
- SectionInformation.cs
- CanonicalXml.cs
- BaseCollection.cs
- Column.cs
- TrustSection.cs
- EntityClassGenerator.cs
- LinqToSqlWrapper.cs
- FontNamesConverter.cs
- PopupEventArgs.cs
- Lease.cs
- CacheForPrimitiveTypes.cs
- SQLSingleStorage.cs
- OutgoingWebResponseContext.cs
- XmlCharType.cs
- ImageFormatConverter.cs
- OdbcEnvironment.cs
- ProtocolsInstallComponent.cs
- CqlParser.cs
- Command.cs
- RichTextBoxAutomationPeer.cs
- EmbeddedMailObjectCollectionEditor.cs
- OperandQuery.cs
- ChannelSinkStacks.cs
- Pen.cs
- ContractsBCL.cs
- XmlSerializationReader.cs
- RawStylusActions.cs
- CultureInfo.cs
- UpdateRecord.cs
- XmlSchemaChoice.cs
- MessageBuffer.cs
- DataTableCollection.cs
- UIElement3D.cs
- Normalization.cs
- IISUnsafeMethods.cs
- ApplicationSecurityInfo.cs
- SystemIPInterfaceProperties.cs