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
- TypeDescriptionProviderAttribute.cs
- ScrollProviderWrapper.cs
- DataGridRow.cs
- ResourceDisplayNameAttribute.cs
- Queue.cs
- SequenceDesigner.xaml.cs
- SafeArrayTypeMismatchException.cs
- SqlDataReader.cs
- CodeMemberField.cs
- OleDbFactory.cs
- SkipQueryOptionExpression.cs
- KeyTime.cs
- ServiceMetadataExtension.cs
- MDIControlStrip.cs
- NavigationEventArgs.cs
- DbResourceAllocator.cs
- precedingsibling.cs
- ServiceDescriptionImporter.cs
- WindowsSolidBrush.cs
- PointAnimationBase.cs
- TypeTypeConverter.cs
- HtmlDocument.cs
- X509UI.cs
- IteratorDescriptor.cs
- IWorkflowDebuggerService.cs
- FilterableAttribute.cs
- MessageHeaderException.cs
- LogicalTreeHelper.cs
- BindableAttribute.cs
- PixelFormats.cs
- ZipQueryOperator.cs
- SqlDataSourceView.cs
- ManipulationVelocities.cs
- Vertex.cs
- SortKey.cs
- WindowsListView.cs
- LineInfo.cs
- TableCellAutomationPeer.cs
- TypefaceCollection.cs
- ToolboxControl.cs
- AtlasWeb.Designer.cs
- XmlRawWriterWrapper.cs
- XmlSerializerNamespaces.cs
- BindingExpression.cs
- XPathNode.cs
- InterleavedZipPartStream.cs
- SecurityBindingElementImporter.cs
- SourceItem.cs
- _CommandStream.cs
- PasswordDeriveBytes.cs
- WebBrowserBase.cs
- XmlSchemaException.cs
- TableItemProviderWrapper.cs
- Stylus.cs
- TranslateTransform3D.cs
- KeyTime.cs
- SerialPort.cs
- DataConnectionHelper.cs
- TypeSystemHelpers.cs
- CompositeDataBoundControl.cs
- TreeViewItem.cs
- XmlTypeAttribute.cs
- ListViewContainer.cs
- InstanceCompleteException.cs
- GetCertificateRequest.cs
- CategoryNameCollection.cs
- RadioButton.cs
- TypeForwardedToAttribute.cs
- WindowsSolidBrush.cs
- WhitespaceReader.cs
- DataReceivedEventArgs.cs
- LinqDataSourceUpdateEventArgs.cs
- CallbackValidator.cs
- ChannelTokenTypeConverter.cs
- ListView.cs
- EntityClassGenerator.cs
- HtmlMeta.cs
- DispatchOperationRuntime.cs
- TriggerActionCollection.cs
- TCPClient.cs
- PermissionToken.cs
- MarkerProperties.cs
- SapiRecoInterop.cs
- LogLogRecordEnumerator.cs
- UIElement3D.cs
- XmlObjectSerializerWriteContextComplex.cs
- ValueProviderWrapper.cs
- EmptyControlCollection.cs
- shaperfactoryquerycacheentry.cs
- DesignerAttribute.cs
- StandardCommandToolStripMenuItem.cs
- GraphicsContainer.cs
- RootBuilder.cs
- HttpRequest.cs
- KeyNameIdentifierClause.cs
- WindowsToolbar.cs
- WebPartHeaderCloseVerb.cs
- StrongName.cs
- EncryptedPackageFilter.cs
- BaseDataList.cs