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
- DbTransaction.cs
- AssertFilter.cs
- StringSource.cs
- WaitForChangedResult.cs
- SponsorHelper.cs
- SecurityVerifiedMessage.cs
- ExtentJoinTreeNode.cs
- COM2ExtendedTypeConverter.cs
- BitmapPalette.cs
- SelectionItemPattern.cs
- PropertyValueUIItem.cs
- CapabilitiesPattern.cs
- XmlnsDefinitionAttribute.cs
- Normalization.cs
- SafeReversePInvokeHandle.cs
- Scalars.cs
- RelationshipWrapper.cs
- ConfigurationManagerHelperFactory.cs
- RawStylusInputCustomData.cs
- _OverlappedAsyncResult.cs
- TextComposition.cs
- WindowAutomationPeer.cs
- HandlerMappingMemo.cs
- CqlQuery.cs
- EndpointIdentity.cs
- ObjectToIdCache.cs
- _HelperAsyncResults.cs
- AlgoModule.cs
- Soap.cs
- DelayedRegex.cs
- IsolatedStorageFilePermission.cs
- BitVector32.cs
- SoapHeaderException.cs
- WindowsBrush.cs
- DbConnectionStringCommon.cs
- SevenBitStream.cs
- FieldBuilder.cs
- securitymgrsite.cs
- ReadOnlyCollectionBase.cs
- X509KeyIdentifierClauseType.cs
- DbDataAdapter.cs
- SecurityDocument.cs
- WindowsListViewGroupHelper.cs
- VirtualPath.cs
- TextAnchor.cs
- FlowLayoutSettings.cs
- HtmlListAdapter.cs
- ConfigXmlReader.cs
- ProfileGroupSettings.cs
- ChtmlCalendarAdapter.cs
- PointLight.cs
- AssemblyName.cs
- DefaultObjectMappingItemCollection.cs
- TypeUnloadedException.cs
- ToolTip.cs
- HtmlObjectListAdapter.cs
- UIElementAutomationPeer.cs
- UserMapPath.cs
- DisposableCollectionWrapper.cs
- HitTestParameters.cs
- CDSCollectionETWBCLProvider.cs
- WindowsSecurityToken.cs
- Rijndael.cs
- Matrix.cs
- NavigatorInput.cs
- xmlfixedPageInfo.cs
- CompositeDataBoundControl.cs
- AliasExpr.cs
- dtdvalidator.cs
- CodeEventReferenceExpression.cs
- SafeSerializationManager.cs
- DataGridViewSelectedCellCollection.cs
- CustomAttributeSerializer.cs
- DescendantQuery.cs
- odbcmetadatacolumnnames.cs
- _UncName.cs
- KeyNameIdentifierClause.cs
- EditorBrowsableAttribute.cs
- XmlSchemaGroupRef.cs
- FastEncoderStatics.cs
- DataGridViewAdvancedBorderStyle.cs
- SqlErrorCollection.cs
- UInt64.cs
- DbConnectionOptions.cs
- SmiRecordBuffer.cs
- EncryptionUtility.cs
- NumericUpDownAccelerationCollection.cs
- _RequestCacheProtocol.cs
- FormsAuthenticationModule.cs
- ClientSettingsSection.cs
- ToolStripItemCollection.cs
- SecureStringHasher.cs
- SqlRemoveConstantOrderBy.cs
- MULTI_QI.cs
- _NTAuthentication.cs
- GenericParameterDataContract.cs
- DetailsViewInsertEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- HtmlProps.cs
- DrawingImage.cs