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
- CollectionView.cs
- DataMisalignedException.cs
- LastQueryOperator.cs
- EpmSyndicationContentSerializer.cs
- PictureBox.cs
- ParentUndoUnit.cs
- SqlFlattener.cs
- ServiceInfo.cs
- HtmlGenericControl.cs
- OpenTypeLayoutCache.cs
- wgx_render.cs
- FastEncoderWindow.cs
- RemoteWebConfigurationHost.cs
- RegexGroupCollection.cs
- SpellCheck.cs
- InternalControlCollection.cs
- CompoundFileReference.cs
- OperatorExpressions.cs
- ACL.cs
- PackageStore.cs
- SqlBooleanMismatchVisitor.cs
- RoleService.cs
- HttpRuntimeSection.cs
- Resources.Designer.cs
- UrlMappingCollection.cs
- HashCodeCombiner.cs
- SafeNativeMethods.cs
- SystemTcpStatistics.cs
- RadioButtonDesigner.cs
- AccessViolationException.cs
- ObservableDictionary.cs
- WhitespaceRule.cs
- InputScopeAttribute.cs
- WriteableBitmap.cs
- TypeUtil.cs
- IndexerNameAttribute.cs
- RefreshEventArgs.cs
- InputReportEventArgs.cs
- PreviewControlDesigner.cs
- XamlToRtfWriter.cs
- DateTimeOffsetConverter.cs
- MulticastIPAddressInformationCollection.cs
- CloseCryptoHandleRequest.cs
- ScrollPattern.cs
- UseLicense.cs
- AdjustableArrowCap.cs
- DatagridviewDisplayedBandsData.cs
- TextServicesProperty.cs
- XPathSingletonIterator.cs
- GridItemPattern.cs
- StorageScalarPropertyMapping.cs
- ToolBarButton.cs
- DecimalConstantAttribute.cs
- ObjectResult.cs
- XmlUtilWriter.cs
- ConfigurationLoader.cs
- QilTypeChecker.cs
- CorrelationTokenTypeConvertor.cs
- _NegoStream.cs
- PeerNameRecord.cs
- Control.cs
- SerializationInfoEnumerator.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- WebPartsSection.cs
- RegistryKey.cs
- RowType.cs
- Tile.cs
- Variable.cs
- WebResourceAttribute.cs
- CodeDOMUtility.cs
- TabControl.cs
- UnsafeNativeMethods.cs
- CqlQuery.cs
- XPathArrayIterator.cs
- ByeOperation11AsyncResult.cs
- RootBuilder.cs
- ExpressionVisitor.cs
- Camera.cs
- __FastResourceComparer.cs
- SamlAuthorizationDecisionClaimResource.cs
- XmlTextReaderImpl.cs
- OneOfConst.cs
- SiblingIterators.cs
- HandleCollector.cs
- ChunkedMemoryStream.cs
- Int32AnimationBase.cs
- securitycriticaldataClass.cs
- GenericXmlSecurityToken.cs
- TextServicesCompartmentEventSink.cs
- TaiwanLunisolarCalendar.cs
- BaseParser.cs
- DurableTimerExtension.cs
- BordersPage.cs
- LinqToSqlWrapper.cs
- JoinGraph.cs
- SmiSettersStream.cs
- CodeNamespaceImport.cs
- RangeExpression.cs
- CryptographicAttribute.cs
- RuntimeIdentifierPropertyAttribute.cs