Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Input / InputEventArgs.cs / 1 / 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. 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
- ToolStripProgressBar.cs
- CompilationUtil.cs
- ManagementPath.cs
- XmlCollation.cs
- NotifyCollectionChangedEventArgs.cs
- TraceHelpers.cs
- Keywords.cs
- OverflowException.cs
- DynamicPhysicalDiscoSearcher.cs
- IdentityHolder.cs
- PersistChildrenAttribute.cs
- TableRow.cs
- ErrorWrapper.cs
- HasActivatableWorkflowEvent.cs
- ReservationCollection.cs
- DataServiceExpressionVisitor.cs
- ObjectStateManagerMetadata.cs
- CodeMemberMethod.cs
- SRGSCompiler.cs
- StickyNote.cs
- XmlChoiceIdentifierAttribute.cs
- ParallelTimeline.cs
- Clipboard.cs
- SpAudioStreamWrapper.cs
- RemoteWebConfigurationHostServer.cs
- WindowHideOrCloseTracker.cs
- SoapSchemaMember.cs
- ParameterToken.cs
- CharKeyFrameCollection.cs
- SslStreamSecurityUpgradeProvider.cs
- BasicCommandTreeVisitor.cs
- DesignTimeTemplateParser.cs
- KeyNotFoundException.cs
- SystemUnicastIPAddressInformation.cs
- SendMessageContent.cs
- QueryConverter.cs
- MsmqOutputMessage.cs
- ToolBarButton.cs
- NotFiniteNumberException.cs
- WebPartDescriptionCollection.cs
- IsolatedStorageFileStream.cs
- NullRuntimeConfig.cs
- ImmComposition.cs
- PrinterSettings.cs
- TagPrefixAttribute.cs
- nulltextnavigator.cs
- InstancePersistence.cs
- SoapDocumentMethodAttribute.cs
- WebBrowserHelper.cs
- EventSetter.cs
- DataGridViewMethods.cs
- HttpCapabilitiesEvaluator.cs
- NativeMethods.cs
- OutputCacheProfile.cs
- TypefaceMap.cs
- PagedDataSource.cs
- ProcessHostFactoryHelper.cs
- WindowsAltTab.cs
- UpdatePanelControlTrigger.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Wizard.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XmlSchemaAttributeGroupRef.cs
- ServiceOperationWrapper.cs
- DocumentXmlWriter.cs
- TearOffProxy.cs
- HtmlControl.cs
- ZipIORawDataFileBlock.cs
- FontNamesConverter.cs
- CodeTypeDeclaration.cs
- ColumnBinding.cs
- Update.cs
- AggregationMinMaxHelpers.cs
- DocumentApplicationJournalEntryEventArgs.cs
- PackageDocument.cs
- DataGridViewRow.cs
- XmlAttributeAttribute.cs
- RepeatBehaviorConverter.cs
- X509ImageLogo.cs
- RestHandler.cs
- NumberFunctions.cs
- util.cs
- PlainXmlWriter.cs
- XmlBinaryReader.cs
- PrimaryKeyTypeConverter.cs
- NCryptSafeHandles.cs
- TextDocumentView.cs
- SqlExpander.cs
- ItemsChangedEventArgs.cs
- ping.cs
- SqlTransaction.cs
- CatalogPartCollection.cs
- Point3DCollection.cs
- LayoutTableCell.cs
- ListItemParagraph.cs
- SqlDataSourceView.cs
- PropertiesTab.cs
- compensatingcollection.cs
- ElementUtil.cs
- WebBrowser.cs