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
- SoapIncludeAttribute.cs
- ADMembershipProvider.cs
- CodeAttributeArgument.cs
- QilFactory.cs
- SerialPinChanges.cs
- DetailsViewUpdateEventArgs.cs
- WaitHandleCannotBeOpenedException.cs
- SqlDataSourceConfigureFilterForm.cs
- WindowsGraphics.cs
- Comparer.cs
- XamlPointCollectionSerializer.cs
- HuffCodec.cs
- RSAOAEPKeyExchangeFormatter.cs
- TypeElement.cs
- ToolStripControlHost.cs
- SQlBooleanStorage.cs
- StrongNameIdentityPermission.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XamlPoint3DCollectionSerializer.cs
- PkcsMisc.cs
- TextDataBindingHandler.cs
- DataGridViewLinkColumn.cs
- XmlTextReaderImpl.cs
- CommandID.cs
- ProcessInfo.cs
- TreeNodeCollection.cs
- _Events.cs
- Animatable.cs
- ResolveCompletedEventArgs.cs
- HMAC.cs
- ApplicationGesture.cs
- WinEventWrap.cs
- BCLDebug.cs
- Point3DCollectionConverter.cs
- FunctionNode.cs
- MethodRental.cs
- RegexMatchCollection.cs
- ExcCanonicalXml.cs
- ClientFormsAuthenticationCredentials.cs
- Application.cs
- SystemColors.cs
- ExceptionHelpers.cs
- DataGridViewColumnHeaderCell.cs
- DataTable.cs
- WebCategoryAttribute.cs
- DropShadowBitmapEffect.cs
- ApplicationServicesHostFactory.cs
- _IPv6Address.cs
- PageFunction.cs
- TextDpi.cs
- GlyphTypeface.cs
- Statements.cs
- SqlDependency.cs
- NavigatingCancelEventArgs.cs
- DataSourceHelper.cs
- StagingAreaInputItem.cs
- ResourceReferenceKeyNotFoundException.cs
- StatusStrip.cs
- ObjectDataSource.cs
- RelatedImageListAttribute.cs
- SuppressIldasmAttribute.cs
- SortDescription.cs
- WebGetAttribute.cs
- ADConnectionHelper.cs
- XsltArgumentList.cs
- DBConcurrencyException.cs
- GroupBoxRenderer.cs
- Property.cs
- RemoteAsymmetricSignatureFormatter.cs
- IDispatchConstantAttribute.cs
- FamilyMapCollection.cs
- SoapHeaders.cs
- Simplifier.cs
- RightNameExpirationInfoPair.cs
- HttpProfileGroupBase.cs
- ValidatingPropertiesEventArgs.cs
- ITextView.cs
- IxmlLineInfo.cs
- MexNamedPipeBindingElement.cs
- ModulesEntry.cs
- MarshalDirectiveException.cs
- GregorianCalendarHelper.cs
- _SpnDictionary.cs
- SpnegoTokenProvider.cs
- SignerInfo.cs
- XmlReflectionImporter.cs
- BadImageFormatException.cs
- PowerStatus.cs
- SizeFConverter.cs
- NotificationContext.cs
- Section.cs
- FrameworkElement.cs
- Floater.cs
- CompositeTypefaceMetrics.cs
- ClipboardProcessor.cs
- SkewTransform.cs
- GenerateScriptTypeAttribute.cs
- XPathNodeIterator.cs
- ACL.cs
- FrameAutomationPeer.cs