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
- EventArgs.cs
- CacheManager.cs
- WSSecurityPolicy.cs
- TripleDES.cs
- AccessText.cs
- Debug.cs
- MachineSettingsSection.cs
- UpdatePanelTriggerCollection.cs
- GraphicsPathIterator.cs
- GridErrorDlg.cs
- HostDesigntimeLicenseContext.cs
- Line.cs
- Model3DGroup.cs
- ListViewEditEventArgs.cs
- ProjectionAnalyzer.cs
- MatrixValueSerializer.cs
- ComponentFactoryHelpers.cs
- ModelTypeConverter.cs
- LinkedResourceCollection.cs
- NonDualMessageSecurityOverHttpElement.cs
- UnknownWrapper.cs
- DataGridColumnCollection.cs
- InputLangChangeEvent.cs
- LinqDataView.cs
- SmtpReplyReader.cs
- CodeDirectoryCompiler.cs
- ZoneMembershipCondition.cs
- DataGridViewCellParsingEventArgs.cs
- BrowserCapabilitiesFactory35.cs
- VisualBasicHelper.cs
- MissingFieldException.cs
- DataGridViewIntLinkedList.cs
- Int32RectConverter.cs
- QuaternionKeyFrameCollection.cs
- XmlTextReaderImplHelpers.cs
- ToolboxCategoryItems.cs
- BitmapCodecInfo.cs
- ExcludePathInfo.cs
- StatusBarAutomationPeer.cs
- WindowsRebar.cs
- ReadOnlyDictionary.cs
- EventMap.cs
- GacUtil.cs
- WindowsScrollBar.cs
- ListBoxItemAutomationPeer.cs
- ErrorFormatterPage.cs
- EditorAttributeInfo.cs
- KeyInterop.cs
- GradientStop.cs
- CertificateElement.cs
- InputScopeManager.cs
- ColorBlend.cs
- NullableConverter.cs
- UnitySerializationHolder.cs
- BamlReader.cs
- ListSourceHelper.cs
- SoapSchemaMember.cs
- MethodImplAttribute.cs
- TreeIterator.cs
- WebScriptClientGenerator.cs
- Debug.cs
- PropertyInformationCollection.cs
- Content.cs
- ProvidersHelper.cs
- Canvas.cs
- XPathNavigator.cs
- XmlSerializerOperationBehavior.cs
- RectangleHotSpot.cs
- Calendar.cs
- securestring.cs
- XmlHelper.cs
- LingerOption.cs
- SerializationEventsCache.cs
- DigitalSignature.cs
- DataGridViewCheckBoxCell.cs
- TemplatePartAttribute.cs
- HttpModuleActionCollection.cs
- IdentityNotMappedException.cs
- SQLInt32.cs
- KeysConverter.cs
- CodeObjectCreateExpression.cs
- UIServiceHelper.cs
- FormatStringEditor.cs
- StatusBar.cs
- SignedXmlDebugLog.cs
- TargetParameterCountException.cs
- ObjectIDGenerator.cs
- ToolStripTextBox.cs
- SqlCrossApplyToCrossJoin.cs
- Command.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- HttpServerUtilityWrapper.cs
- Configuration.cs
- AspNetSynchronizationContext.cs
- ConfigXmlComment.cs
- JsonWriter.cs
- sqlstateclientmanager.cs
- TransactionOptions.cs
- DataSourceCacheDurationConverter.cs
- TypeExtensionConverter.cs