Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- EditorAttributeInfo.cs
- XPathCompileException.cs
- KeyPullup.cs
- PLINQETWProvider.cs
- WebPartCancelEventArgs.cs
- RankException.cs
- DesignerActionService.cs
- SafeRsaProviderHandle.cs
- JsonReader.cs
- StoreContentChangedEventArgs.cs
- CompositeScriptReference.cs
- PatternMatchRules.cs
- HostingEnvironmentSection.cs
- SafeNativeMethodsCLR.cs
- ComboBoxRenderer.cs
- BaseTransportHeaders.cs
- Keywords.cs
- AccessControlEntry.cs
- SmtpReplyReader.cs
- PersonalizationAdministration.cs
- BrowserCapabilitiesFactory.cs
- HwndSourceParameters.cs
- CFStream.cs
- HttpApplicationFactory.cs
- EncoderParameters.cs
- EndOfStreamException.cs
- ReaderContextStackData.cs
- IdentifierCreationService.cs
- FontFaceLayoutInfo.cs
- CaseInsensitiveComparer.cs
- SerializationInfoEnumerator.cs
- QuaternionAnimationUsingKeyFrames.cs
- SqlProcedureAttribute.cs
- CultureTableRecord.cs
- DbDataReader.cs
- _ShellExpression.cs
- ProvidersHelper.cs
- validation.cs
- OrderingInfo.cs
- ResourceManager.cs
- AuthorizationSection.cs
- Axis.cs
- DBCommand.cs
- WebPartZoneCollection.cs
- ColorTransformHelper.cs
- ExceptionTrace.cs
- SortDescriptionCollection.cs
- DrawingCollection.cs
- GridViewUpdatedEventArgs.cs
- TextControl.cs
- ArrangedElement.cs
- WebPartConnectionsConfigureVerb.cs
- RangeBaseAutomationPeer.cs
- DocumentCollection.cs
- WebPartChrome.cs
- PageStatePersister.cs
- DataServices.cs
- FormatPage.cs
- XPathCompileException.cs
- OracleBoolean.cs
- IOThreadScheduler.cs
- Transform3DGroup.cs
- WebSysDisplayNameAttribute.cs
- StackSpiller.Temps.cs
- MetafileHeader.cs
- FolderBrowserDialogDesigner.cs
- XmlWrappingWriter.cs
- Utility.cs
- QueryOperationResponseOfT.cs
- Double.cs
- LambdaCompiler.ControlFlow.cs
- ClientTargetCollection.cs
- CookielessHelper.cs
- PreservationFileReader.cs
- URI.cs
- SecurityPolicySection.cs
- SqlBulkCopyColumnMappingCollection.cs
- ChangeInterceptorAttribute.cs
- MimeMapping.cs
- FamilyMap.cs
- pingexception.cs
- EntryWrittenEventArgs.cs
- ErrorProvider.cs
- SortKey.cs
- SafeLocalAllocation.cs
- JsonReaderDelegator.cs
- Triplet.cs
- ConsoleTraceListener.cs
- InputManager.cs
- HttpListenerException.cs
- ListViewCommandEventArgs.cs
- SignerInfo.cs
- ArgIterator.cs
- EnvelopedPkcs7.cs
- TextServicesProperty.cs
- WpfKnownTypeInvoker.cs
- BlurBitmapEffect.cs
- WebControl.cs
- AgileSafeNativeMemoryHandle.cs
- OutputCacheSettings.cs