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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Instrumentation.cs
- SByte.cs
- WebPartDescription.cs
- HttpResponse.cs
- EncryptedType.cs
- TextTreeRootTextBlock.cs
- DependentList.cs
- OpCodes.cs
- MaterialGroup.cs
- AnonymousIdentificationSection.cs
- WebBaseEventKeyComparer.cs
- SqlProfileProvider.cs
- DataGridRow.cs
- MSG.cs
- IntellisenseTextBox.designer.cs
- HtmlContainerControl.cs
- ListCollectionView.cs
- srgsitem.cs
- WebAdminConfigurationHelper.cs
- CodeRemoveEventStatement.cs
- EncoderReplacementFallback.cs
- GraphicsContext.cs
- DbConnectionPoolGroupProviderInfo.cs
- QuotedPrintableStream.cs
- ToolStripDropDown.cs
- Invariant.cs
- HuffCodec.cs
- ProvidersHelper.cs
- SqlFacetAttribute.cs
- OleCmdHelper.cs
- ServiceSecurityAuditElement.cs
- DoubleCollectionConverter.cs
- RijndaelManagedTransform.cs
- OleAutBinder.cs
- FaultHandlingFilter.cs
- XmlSchemaSequence.cs
- ReadOnlyMetadataCollection.cs
- Visual3D.cs
- Function.cs
- ImportOptions.cs
- UnconditionalPolicy.cs
- ObjRef.cs
- PointLight.cs
- TabControlEvent.cs
- DataViewListener.cs
- DataGridLength.cs
- EventMemberCodeDomSerializer.cs
- EntityClassGenerator.cs
- OpenTypeLayout.cs
- XmlSignificantWhitespace.cs
- XmlUnspecifiedAttribute.cs
- UniqueConstraint.cs
- GridViewColumnHeaderAutomationPeer.cs
- CodeGenerator.cs
- StateElement.cs
- LayoutDump.cs
- ItemDragEvent.cs
- TrackingMemoryStreamFactory.cs
- AssemblyLoader.cs
- ActivityDesigner.cs
- TransactionWaitAsyncResult.cs
- MouseGestureConverter.cs
- FixedTextPointer.cs
- PerfCounters.cs
- _DomainName.cs
- DataBoundControlHelper.cs
- OuterGlowBitmapEffect.cs
- EntityTransaction.cs
- DockAndAnchorLayout.cs
- ToolboxComponentsCreatedEventArgs.cs
- WorkflowPrinting.cs
- RequestResizeEvent.cs
- XmlImplementation.cs
- XmlBinaryReader.cs
- ThreadExceptionDialog.cs
- DataFormats.cs
- UnicodeEncoding.cs
- PageCache.cs
- BindingExpressionUncommonField.cs
- FSWPathEditor.cs
- DataGridViewAddColumnDialog.cs
- TimeSpanStorage.cs
- TableItemProviderWrapper.cs
- PriorityQueue.cs
- MethodImplAttribute.cs
- EditorPart.cs
- shaperfactoryquerycachekey.cs
- Content.cs
- EntitySetBaseCollection.cs
- ListSourceHelper.cs
- TypedReference.cs
- VectorAnimationUsingKeyFrames.cs
- IxmlLineInfo.cs
- OdbcEnvironment.cs
- IPeerNeighbor.cs
- SqlDataSourceCommandEventArgs.cs
- HitTestParameters.cs
- NumericExpr.cs
- LogWriteRestartAreaAsyncResult.cs
- LinkedList.cs