Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ComponentResourceKey.cs
- EntityContainer.cs
- DataSvcMapFileSerializer.cs
- TimeoutValidationAttribute.cs
- BamlReader.cs
- SqlFlattener.cs
- sqlstateclientmanager.cs
- PlatformCulture.cs
- DesigntimeLicenseContextSerializer.cs
- CodeIdentifiers.cs
- SectionInput.cs
- ServiceBuildProvider.cs
- AccessDataSourceView.cs
- InternalsVisibleToAttribute.cs
- _LocalDataStore.cs
- WebPartDescriptionCollection.cs
- OledbConnectionStringbuilder.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DrawingAttributes.cs
- Walker.cs
- SecurityCriticalDataForSet.cs
- Registration.cs
- BamlReader.cs
- CoTaskMemHandle.cs
- FilterElement.cs
- CompiledQueryCacheEntry.cs
- FormatterServices.cs
- UserControl.cs
- X509Certificate.cs
- Inflater.cs
- CodeExpressionCollection.cs
- Claim.cs
- KeyPressEvent.cs
- Permission.cs
- NativeMethodsCLR.cs
- GroupBoxDesigner.cs
- Query.cs
- BaseCodeDomTreeGenerator.cs
- oledbmetadatacollectionnames.cs
- Panel.cs
- NavigationEventArgs.cs
- ParseChildrenAsPropertiesAttribute.cs
- ObjectViewQueryResultData.cs
- EventToken.cs
- SplitterPanelDesigner.cs
- QualifiedCellIdBoolean.cs
- RightNameExpirationInfoPair.cs
- StandardBindingElement.cs
- XmlCodeExporter.cs
- Classification.cs
- AppDomainFactory.cs
- XmlTextReaderImplHelpers.cs
- EtwTrackingBehavior.cs
- ConfigXmlAttribute.cs
- SafeThreadHandle.cs
- PropertyGeneratedEventArgs.cs
- DataColumnChangeEvent.cs
- FlowDocumentReaderAutomationPeer.cs
- XmlNamedNodeMap.cs
- AdCreatedEventArgs.cs
- NameValueFileSectionHandler.cs
- _PooledStream.cs
- ProviderSettings.cs
- XmlRootAttribute.cs
- MediaTimeline.cs
- CollectionViewGroupInternal.cs
- ResolveNameEventArgs.cs
- BaseHashHelper.cs
- DataSpaceManager.cs
- future.cs
- KeyboardNavigation.cs
- WCFServiceClientProxyGenerator.cs
- uribuilder.cs
- ExceptionTrace.cs
- RichTextBox.cs
- ProxyElement.cs
- InternalCache.cs
- MemoryPressure.cs
- PropertiesTab.cs
- TableStyle.cs
- LinearKeyFrames.cs
- HeaderedContentControl.cs
- ContainerVisual.cs
- PasswordRecoveryAutoFormat.cs
- WebConfigurationHostFileChange.cs
- EntryIndex.cs
- ExpressionBuilderCollection.cs
- DispatcherSynchronizationContext.cs
- PixelShader.cs
- EncodingStreamWrapper.cs
- EventMetadata.cs
- CustomAttribute.cs
- WinInetCache.cs
- PowerModeChangedEventArgs.cs
- AuthenticationModuleElement.cs
- WebServiceEnumData.cs
- Number.cs
- DataSourceHelper.cs
- PKCS1MaskGenerationMethod.cs
- AudioFormatConverter.cs