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
- SchemaNamespaceManager.cs
- ListControlBoundActionList.cs
- AutoGeneratedField.cs
- MultiSelector.cs
- AppDomainProtocolHandler.cs
- BidPrivateBase.cs
- SHA512.cs
- GrammarBuilderBase.cs
- OperatorExpressions.cs
- TypeElement.cs
- WsatServiceCertificate.cs
- MailDefinition.cs
- TraversalRequest.cs
- AbstractDataSvcMapFileLoader.cs
- WeakReadOnlyCollection.cs
- MessageSmuggler.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ImageDrawing.cs
- KeyBinding.cs
- IdnMapping.cs
- UrlMapping.cs
- EventRouteFactory.cs
- ProvideValueServiceProvider.cs
- XmlTextReader.cs
- VerificationAttribute.cs
- ReadOnlyHierarchicalDataSource.cs
- SocketElement.cs
- Route.cs
- Crc32.cs
- WMIGenerator.cs
- GridViewEditEventArgs.cs
- WorkerRequest.cs
- EventArgs.cs
- OleDbSchemaGuid.cs
- Win32KeyboardDevice.cs
- ConfigXmlText.cs
- SecurityCriticalDataForSet.cs
- BamlTreeMap.cs
- ObjectFullSpanRewriter.cs
- RuleAttributes.cs
- Hex.cs
- DynamicFilter.cs
- sqlcontext.cs
- LocationReferenceEnvironment.cs
- TextHidden.cs
- PointLight.cs
- SiteMapDataSourceDesigner.cs
- BufferBuilder.cs
- DtdParser.cs
- LongTypeConverter.cs
- PreservationFileWriter.cs
- LazyLoadBehavior.cs
- HandledMouseEvent.cs
- ValidateNames.cs
- WinCategoryAttribute.cs
- CqlBlock.cs
- DesignerActionMethodItem.cs
- GifBitmapEncoder.cs
- ObjectQueryProvider.cs
- ProxyWebPartManager.cs
- XmlSchemaGroupRef.cs
- Mapping.cs
- MasterPageCodeDomTreeGenerator.cs
- CustomAttribute.cs
- RepeaterDataBoundAdapter.cs
- CodeLabeledStatement.cs
- GestureRecognitionResult.cs
- HttpConfigurationSystem.cs
- PathNode.cs
- FontSourceCollection.cs
- SequenceNumber.cs
- DateTimePickerDesigner.cs
- designeractionlistschangedeventargs.cs
- _ConnectOverlappedAsyncResult.cs
- Soap12ServerProtocol.cs
- SerializationAttributes.cs
- RecipientInfo.cs
- RawUIStateInputReport.cs
- XmlSchemaObjectTable.cs
- Vector3DCollectionConverter.cs
- ChannelManagerHelpers.cs
- StyleSelector.cs
- NamedObject.cs
- ParentControlDesigner.cs
- DataListItem.cs
- Debug.cs
- TabItemAutomationPeer.cs
- DataRecordInternal.cs
- QilReplaceVisitor.cs
- ProfileEventArgs.cs
- ClientOptions.cs
- UnsafeNativeMethods.cs
- XhtmlConformanceSection.cs
- DynamicILGenerator.cs
- PrinterUnitConvert.cs
- RenderDataDrawingContext.cs
- SqlSelectClauseBuilder.cs
- SafeFileHandle.cs
- ContractHandle.cs
- NetworkInterface.cs