Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / TouchEventArgs.cs / 1305600 / TouchEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Windows; using System.Windows.Input; namespace System.Windows.Input { public class TouchEventArgs : InputEventArgs { public TouchEventArgs(TouchDevice touchDevice, int timestamp) : base (touchDevice, timestamp) { } ////// The device associated with these event arguments. /// public TouchDevice TouchDevice { get { return (TouchDevice)Device; } } ////// Retrieves the current state related to postion of the TouchDevice. /// /// The element that defines the coordinate space of the returned data. ///A TouchPoint object that describes the position and other data regarding the TouchDevice. public TouchPoint GetTouchPoint(IInputElement relativeTo) { return TouchDevice.GetTouchPoint(relativeTo); } ////// Retrieves the positions that the TouchDevice went through between the /// last time a touch event occurred and this one. /// /// The elmeent that defines the coordinate space of the returned data. ///The positions that the TouchDevice went through. public TouchPointCollection GetIntermediateTouchPoints(IInputElement relativeTo) { return TouchDevice.GetIntermediateTouchPoints(relativeTo); } ////// 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) { EventHandlerhandler = (EventHandler )genericHandler; handler(genericTarget, this); } } } // 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
- RightsManagementEncryptionTransform.cs
- StringStorage.cs
- ColorConvertedBitmapExtension.cs
- Border.cs
- Decimal.cs
- _SslState.cs
- PointHitTestParameters.cs
- WrappedIUnknown.cs
- MessageBuffer.cs
- CommonDialog.cs
- XPathNavigatorReader.cs
- RC2.cs
- TypedTableBaseExtensions.cs
- XmlWriterSettings.cs
- ListBoxChrome.cs
- MasterPageCodeDomTreeGenerator.cs
- ItemContainerGenerator.cs
- TabItem.cs
- Point3DCollectionValueSerializer.cs
- ResourceContainerWrapper.cs
- Message.cs
- MouseEvent.cs
- QueryStringParameter.cs
- ValueProviderWrapper.cs
- MouseOverProperty.cs
- RightNameExpirationInfoPair.cs
- InputScopeAttribute.cs
- FormViewPageEventArgs.cs
- EnumerableRowCollectionExtensions.cs
- XmlQueryStaticData.cs
- NavigationPropertyAccessor.cs
- AutomationEvent.cs
- ObservableCollection.cs
- OrderByQueryOptionExpression.cs
- LayoutEvent.cs
- SortQuery.cs
- Types.cs
- UnSafeCharBuffer.cs
- GeneralTransformGroup.cs
- DrawListViewItemEventArgs.cs
- LoadedOrUnloadedOperation.cs
- OAVariantLib.cs
- CodeMemberMethod.cs
- XmlSerializerFactory.cs
- DataGridViewCellPaintingEventArgs.cs
- odbcmetadatacolumnnames.cs
- XmlSchemaObject.cs
- HttpCachePolicyElement.cs
- Zone.cs
- OracleRowUpdatedEventArgs.cs
- XmlMapping.cs
- ZoneIdentityPermission.cs
- CapabilitiesSection.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ConfigurationManagerInternalFactory.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- ToolStripDropDown.cs
- ZoneLinkButton.cs
- PublishLicense.cs
- OrderedDictionaryStateHelper.cs
- MenuItem.cs
- QueryAccessibilityHelpEvent.cs
- TemplateControlCodeDomTreeGenerator.cs
- TraceEventCache.cs
- CharacterMetricsDictionary.cs
- TextElementEditingBehaviorAttribute.cs
- RelatedImageListAttribute.cs
- TextChange.cs
- TransformedBitmap.cs
- EUCJPEncoding.cs
- CallbackValidatorAttribute.cs
- DataGridViewCellConverter.cs
- DocumentSequence.cs
- CharEnumerator.cs
- DataSourceView.cs
- ObjectNotFoundException.cs
- ReversePositionQuery.cs
- NavigatorInput.cs
- FilteredXmlReader.cs
- METAHEADER.cs
- ConnectionManagementElementCollection.cs
- HttpCapabilitiesBase.cs
- SizeChangedEventArgs.cs
- OrderByQueryOptionExpression.cs
- BuiltInExpr.cs
- SQLCharsStorage.cs
- SchemaDeclBase.cs
- ToolStripDesignerUtils.cs
- DataColumnPropertyDescriptor.cs
- BridgeDataReader.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- ProgressBarRenderer.cs
- MbpInfo.cs
- XmlNamespaceMapping.cs
- BinHexDecoder.cs
- ErrorWebPart.cs
- ReferenceConverter.cs
- _UncName.cs
- StateMachineExecutionState.cs
- MailAddressCollection.cs