Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataGridViewRowCancelEventArgs.cs
- DBDataPermissionAttribute.cs
- ListViewInsertionMark.cs
- DesignerEditorPartChrome.cs
- ServiceManager.cs
- DataContractSerializerOperationBehavior.cs
- MouseEvent.cs
- GetWinFXPath.cs
- TextEmbeddedObject.cs
- GridViewUpdatedEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- DataBindEngine.cs
- Brush.cs
- MemberInitExpression.cs
- DefinitionUpdate.cs
- WebPartEventArgs.cs
- PrintController.cs
- SqlDataSourceStatusEventArgs.cs
- FormViewPagerRow.cs
- ReachPrintTicketSerializer.cs
- ParsedAttributeCollection.cs
- MergeLocalizationDirectives.cs
- FindProgressChangedEventArgs.cs
- SmtpNetworkElement.cs
- FixedSOMLineRanges.cs
- ObfuscateAssemblyAttribute.cs
- UnsignedPublishLicense.cs
- MemoryPressure.cs
- TemplateXamlParser.cs
- ShapeTypeface.cs
- ApplicationDirectory.cs
- XmlSortKey.cs
- SchemaMerger.cs
- XMLDiffLoader.cs
- VScrollBar.cs
- SharedPerformanceCounter.cs
- TextParagraphCache.cs
- KeyFrames.cs
- XMLSchema.cs
- PathFigure.cs
- RoleGroup.cs
- PropertyGrid.cs
- PartitionResolver.cs
- SmiRequestExecutor.cs
- MatrixAnimationUsingPath.cs
- MultiViewDesigner.cs
- StrongName.cs
- InputElement.cs
- ISAPIApplicationHost.cs
- ApplicationActivator.cs
- XXXOnTypeBuilderInstantiation.cs
- FixedSOMPageElement.cs
- SQLBytes.cs
- HttpModuleAction.cs
- PropertyDescriptorComparer.cs
- WebPartDescription.cs
- userdatakeys.cs
- DiscoveryClientDuplexChannel.cs
- XmlBinaryReaderSession.cs
- EventLogEntryCollection.cs
- Pair.cs
- GlyphRunDrawing.cs
- InkCanvasSelectionAdorner.cs
- PrimitiveRenderer.cs
- BitmapEffectvisualstate.cs
- FileRegion.cs
- XmlSerializerFaultFormatter.cs
- keycontainerpermission.cs
- RequestDescription.cs
- DataKey.cs
- XmlSchemaInclude.cs
- SettingsProperty.cs
- LocalFileSettingsProvider.cs
- BitmapFrameEncode.cs
- Misc.cs
- SizeValueSerializer.cs
- XmlSchemaAnnotation.cs
- TypeConstant.cs
- ValuePatternIdentifiers.cs
- OdbcConnectionPoolProviderInfo.cs
- ContextMenuAutomationPeer.cs
- ObjectAnimationBase.cs
- XmlSequenceWriter.cs
- ConfigXmlComment.cs
- FieldTemplateUserControl.cs
- ColorContextHelper.cs
- DesignTimeType.cs
- HostingEnvironmentException.cs
- DesignOnlyAttribute.cs
- Stylus.cs
- SemaphoreSlim.cs
- DoubleStorage.cs
- DataObject.cs
- NotificationContext.cs
- TextEditorTyping.cs
- ActiveXHost.cs
- SortQuery.cs
- DecoderBestFitFallback.cs
- XhtmlBasicPageAdapter.cs
- LocalizationParserHooks.cs