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
- Exceptions.cs
- WorkflowWebService.cs
- XPathSelfQuery.cs
- HttpModuleCollection.cs
- XmlSchemaProviderAttribute.cs
- UrlAuthFailedErrorFormatter.cs
- HtmlContainerControl.cs
- ReflectTypeDescriptionProvider.cs
- ProtocolsConfigurationEntry.cs
- XmlSchemaComplexContentRestriction.cs
- DataTableNameHandler.cs
- CalendarDay.cs
- BlockUIContainer.cs
- OutOfMemoryException.cs
- TableHeaderCell.cs
- PopOutPanel.cs
- WasHostedComPlusFactory.cs
- GeneralTransform.cs
- ParseChildrenAsPropertiesAttribute.cs
- XmlMtomWriter.cs
- DBNull.cs
- PatternMatcher.cs
- StatementContext.cs
- ProviderConnectionPoint.cs
- XmlSchemaComplexType.cs
- Propagator.ExtentPlaceholderCreator.cs
- handlecollector.cs
- PolyLineSegment.cs
- WindowsPen.cs
- TreeViewCancelEvent.cs
- StyleTypedPropertyAttribute.cs
- DatePickerDateValidationErrorEventArgs.cs
- ComProxy.cs
- LOSFormatter.cs
- DrawingGroup.cs
- SqlDataSourceSelectingEventArgs.cs
- MimeWriter.cs
- DispatcherTimer.cs
- ViewGenerator.cs
- MethodToken.cs
- sqlser.cs
- ReadOnlyDataSourceView.cs
- SymmetricAlgorithm.cs
- ServiceOperationInfoTypeConverter.cs
- ConversionContext.cs
- PlacementWorkspace.cs
- QueueException.cs
- StrokeCollectionDefaultValueFactory.cs
- ExpandSegment.cs
- ProfileProvider.cs
- QuaternionAnimation.cs
- XmlSerializationGeneratedCode.cs
- ConfigViewGenerator.cs
- ConvertBinder.cs
- Tool.cs
- FixedPageAutomationPeer.cs
- SessionState.cs
- SqlSupersetValidator.cs
- DataBoundControlAdapter.cs
- GridPattern.cs
- BamlStream.cs
- AffineTransform3D.cs
- TextMetrics.cs
- MarkupWriter.cs
- GifBitmapDecoder.cs
- IgnoreDataMemberAttribute.cs
- DocumentXmlWriter.cs
- wpf-etw.cs
- SkipQueryOptionExpression.cs
- safesecurityhelperavalon.cs
- DescendantQuery.cs
- ThreadStartException.cs
- SctClaimSerializer.cs
- HtmlElementErrorEventArgs.cs
- TextPatternIdentifiers.cs
- AccessedThroughPropertyAttribute.cs
- CacheEntry.cs
- FieldReference.cs
- oledbconnectionstring.cs
- BulletedListDesigner.cs
- SspiWrapper.cs
- TcpTransportBindingElement.cs
- ServiceMetadataBehavior.cs
- DbParameterCollectionHelper.cs
- _AuthenticationState.cs
- MarginsConverter.cs
- FlowDocumentPaginator.cs
- Stream.cs
- OraclePermission.cs
- HttpApplicationFactory.cs
- WebPartHeaderCloseVerb.cs
- BaseTypeViewSchema.cs
- ContextBase.cs
- RichTextBoxDesigner.cs
- RowCache.cs
- XmlNamespaceMapping.cs
- WeakEventTable.cs
- TreeViewItem.cs
- XPathDocumentNavigator.cs
- DBAsyncResult.cs