Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputEventArgs.cs / 1305600 / 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
- PatternMatchRules.cs
- ManagementObjectSearcher.cs
- BaseServiceProvider.cs
- ResourceExpressionEditorSheet.cs
- Debugger.cs
- InputBinder.cs
- CodeSubDirectoriesCollection.cs
- CharEntityEncoderFallback.cs
- Keyboard.cs
- ProfileEventArgs.cs
- FileSecurity.cs
- MultipartIdentifier.cs
- DodSequenceMerge.cs
- OptimizedTemplateContent.cs
- PlatformNotSupportedException.cs
- CodeSubDirectory.cs
- CompareInfo.cs
- WebPartTracker.cs
- shaperfactory.cs
- XamlDesignerSerializationManager.cs
- XmlCDATASection.cs
- SafeFileHandle.cs
- FakeModelPropertyImpl.cs
- SqlInternalConnectionTds.cs
- StorageEntityContainerMapping.cs
- SelectionBorderGlyph.cs
- NameSpaceExtractor.cs
- SelfIssuedAuthProofToken.cs
- EpmSourcePathSegment.cs
- XmlSchemaSimpleTypeList.cs
- RadioButton.cs
- FieldMetadata.cs
- TextEffect.cs
- DiagnosticTraceSource.cs
- HttpResponseInternalBase.cs
- XmlArrayItemAttribute.cs
- AccessControlList.cs
- HistoryEventArgs.cs
- DebugViewWriter.cs
- OutputCacheSection.cs
- CompilerGeneratedAttribute.cs
- Roles.cs
- FontUnit.cs
- RpcResponse.cs
- HealthMonitoringSection.cs
- MarkedHighlightComponent.cs
- UnionExpr.cs
- HandlerFactoryCache.cs
- QueryExpression.cs
- AspNetHostingPermission.cs
- Evidence.cs
- ToolZoneDesigner.cs
- LineGeometry.cs
- StylusTip.cs
- ObjectViewQueryResultData.cs
- EventDescriptor.cs
- EdmConstants.cs
- URLMembershipCondition.cs
- ObjectTypeMapping.cs
- MethodCallConverter.cs
- DateTimeConverter.cs
- XmlSchemaType.cs
- Aggregates.cs
- DataGridViewCellEventArgs.cs
- MessageRpc.cs
- Matrix.cs
- HttpHandler.cs
- COMException.cs
- MailDefinitionBodyFileNameEditor.cs
- StoragePropertyMapping.cs
- XPathAncestorIterator.cs
- JsonFormatWriterGenerator.cs
- TraceHandler.cs
- TypeUnloadedException.cs
- ToolStripGripRenderEventArgs.cs
- HttpMethodAttribute.cs
- TypeConverters.cs
- SecurityContextSecurityToken.cs
- MatrixKeyFrameCollection.cs
- URIFormatException.cs
- DomNameTable.cs
- BuildProvidersCompiler.cs
- TogglePattern.cs
- EncryptedType.cs
- NetworkStream.cs
- ListViewItemCollectionEditor.cs
- BaseCollection.cs
- EntityViewGenerationConstants.cs
- CodeExpressionCollection.cs
- IxmlLineInfo.cs
- TransformationRules.cs
- ProgramNode.cs
- Utility.cs
- HtmlEmptyTagControlBuilder.cs
- ProvidePropertyAttribute.cs
- MemoryMappedView.cs
- PropertyCollection.cs
- DoubleCollectionConverter.cs
- SystemNetworkInterface.cs
- OdbcPermission.cs