Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ResourceCategoryAttribute.cs
- SafeTokenHandle.cs
- FixedDSBuilder.cs
- SchemaInfo.cs
- NameTable.cs
- SafeHandles.cs
- SoapElementAttribute.cs
- BitStream.cs
- securitycriticaldataformultiplegetandset.cs
- DSASignatureFormatter.cs
- DataGridViewCellPaintingEventArgs.cs
- Timeline.cs
- FileVersionInfo.cs
- RepeaterCommandEventArgs.cs
- AlternateView.cs
- AutoGeneratedField.cs
- SelectedDatesCollection.cs
- RtfToken.cs
- ModifierKeysConverter.cs
- MsmqIntegrationOutputChannel.cs
- NumericUpDown.cs
- ClearTypeHintValidation.cs
- ContextMenuStripGroup.cs
- NodeLabelEditEvent.cs
- PartBasedPackageProperties.cs
- SoapServerMethod.cs
- AppSecurityManager.cs
- HashCodeCombiner.cs
- DBConnection.cs
- FontDifferentiator.cs
- SqlParameterCollection.cs
- XComponentModel.cs
- CursorConverter.cs
- MenuItemCollection.cs
- ListItemCollection.cs
- PlaceHolder.cs
- CqlIdentifiers.cs
- ProfileSection.cs
- DbgCompiler.cs
- ChtmlFormAdapter.cs
- CodeBinaryOperatorExpression.cs
- ViewManager.cs
- RightsManagementInformation.cs
- WebBrowsableAttribute.cs
- OdbcParameter.cs
- DbgCompiler.cs
- TemplatedWizardStep.cs
- XmlAttributeAttribute.cs
- WSSecurityTokenSerializer.cs
- ItemCollectionEditor.cs
- CodeArgumentReferenceExpression.cs
- DataGridViewTextBoxEditingControl.cs
- TcpClientChannel.cs
- LinqDataSourceDeleteEventArgs.cs
- TraversalRequest.cs
- sqlcontext.cs
- DocumentCollection.cs
- Encoding.cs
- EdmScalarPropertyAttribute.cs
- RoleManagerEventArgs.cs
- Triangle.cs
- WeakReference.cs
- SecurityTokenResolver.cs
- RemotingSurrogateSelector.cs
- FormClosingEvent.cs
- CatalogZoneBase.cs
- ValidationHelper.cs
- NodeCounter.cs
- WebMessageEncodingElement.cs
- WinInetCache.cs
- MeshGeometry3D.cs
- JsonXmlDataContract.cs
- LogSwitch.cs
- PropertyToken.cs
- ColumnCollection.cs
- StackSpiller.Temps.cs
- AttachedPropertyDescriptor.cs
- SmtpReplyReaderFactory.cs
- CodeAttributeDeclaration.cs
- NodeFunctions.cs
- ListView.cs
- followingsibling.cs
- XPathNodeHelper.cs
- Behavior.cs
- Pens.cs
- SoapHttpTransportImporter.cs
- PlanCompiler.cs
- LinqDataSourceInsertEventArgs.cs
- EdmItemCollection.OcAssemblyCache.cs
- ElementsClipboardData.cs
- SiteMap.cs
- PageThemeParser.cs
- CompositeActivityTypeDescriptorProvider.cs
- FlowLayoutPanel.cs
- ApplicationActivator.cs
- TypeElement.cs
- MetaColumn.cs
- CodeIdentifiers.cs
- VBCodeProvider.cs
- WebServicesInteroperability.cs