Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PerformanceCounterPermissionEntry.cs
- MemberMaps.cs
- AssemblyResourceLoader.cs
- CngProvider.cs
- DesignTimeTemplateParser.cs
- DataObjectCopyingEventArgs.cs
- DictionaryKeyPropertyAttribute.cs
- DbDeleteCommandTree.cs
- TypeForwardedToAttribute.cs
- XmlTypeMapping.cs
- _ChunkParse.cs
- CfgParser.cs
- ConfigurationLocation.cs
- Psha1DerivedKeyGenerator.cs
- SelectedGridItemChangedEvent.cs
- LicenseContext.cs
- EndpointIdentity.cs
- XmlEntityReference.cs
- DateTimeConverter.cs
- NetMsmqBinding.cs
- EmptyElement.cs
- LeaseManager.cs
- EventMappingSettings.cs
- ManagementQuery.cs
- AssemblyResourceLoader.cs
- Assert.cs
- Mutex.cs
- ErrorFormatterPage.cs
- ViewBox.cs
- StickyNoteHelper.cs
- NamespaceInfo.cs
- RoleGroup.cs
- TextureBrush.cs
- invalidudtexception.cs
- DisplayNameAttribute.cs
- WindowsSecurityTokenAuthenticator.cs
- ConfigXmlSignificantWhitespace.cs
- TextAdaptor.cs
- thaishape.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- FormsIdentity.cs
- FloaterParaClient.cs
- ClientClassGenerator.cs
- DbConnectionPoolOptions.cs
- MenuEventArgs.cs
- CacheOutputQuery.cs
- InvalidProgramException.cs
- EventLogWatcher.cs
- Parser.cs
- EntityCommand.cs
- BaseResourcesBuildProvider.cs
- HtmlImageAdapter.cs
- DataComponentNameHandler.cs
- X509WindowsSecurityToken.cs
- ObjectQuery.cs
- TextContainerChangedEventArgs.cs
- PieceNameHelper.cs
- NumberFunctions.cs
- CodeTypeReferenceCollection.cs
- ApplicationGesture.cs
- OdbcDataReader.cs
- SpellCheck.cs
- DocumentStatusResources.cs
- TypeListConverter.cs
- Int32Converter.cs
- PingReply.cs
- CompilerCollection.cs
- DataGridCommandEventArgs.cs
- ButtonChrome.cs
- DoubleStorage.cs
- BitmapSizeOptions.cs
- AutoResizedEvent.cs
- Scene3D.cs
- RIPEMD160Managed.cs
- FakeModelPropertyImpl.cs
- SecurityBindingElement.cs
- FrameworkElementAutomationPeer.cs
- GlobalItem.cs
- TextEditorSpelling.cs
- CheckStoreFileValidityRequest.cs
- BitmapPalette.cs
- Memoizer.cs
- FieldToken.cs
- TreeChangeInfo.cs
- GPStream.cs
- BuildManager.cs
- FunctionOverloadResolver.cs
- BitmapFrameDecode.cs
- HttpHandlersSection.cs
- PointConverter.cs
- CompilerError.cs
- ProfilePropertySettingsCollection.cs
- DataObject.cs
- ObjectTokenCategory.cs
- ExtentJoinTreeNode.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- UshortList2.cs
- PageThemeCodeDomTreeGenerator.cs
- EntitySqlQueryState.cs
- X509CertificateRecipientClientCredential.cs