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
- ContentPlaceHolder.cs
- ArrangedElementCollection.cs
- StylusEditingBehavior.cs
- PropertyMappingExceptionEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- NavigationWindowAutomationPeer.cs
- InsufficientExecutionStackException.cs
- ComplexLine.cs
- DataGridViewRowConverter.cs
- ChannelServices.cs
- ToolStripMenuItemCodeDomSerializer.cs
- connectionpool.cs
- LookupNode.cs
- PhysicalFontFamily.cs
- EntityDesignPluralizationHandler.cs
- SoapExtensionReflector.cs
- SvcMapFileLoader.cs
- HybridWebProxyFinder.cs
- DesignerProperties.cs
- ComplexPropertyEntry.cs
- ResourcePermissionBaseEntry.cs
- wgx_commands.cs
- PolyLineSegment.cs
- SecUtil.cs
- CheckPair.cs
- ServiceHttpHandlerFactory.cs
- TreeNodeEventArgs.cs
- AsmxEndpointPickerExtension.cs
- precedingquery.cs
- WindowsGraphicsCacheManager.cs
- HtmlAnchor.cs
- DesignTimeTemplateParser.cs
- Int16KeyFrameCollection.cs
- UriParserTemplates.cs
- InlineCollection.cs
- WinInetCache.cs
- LayoutUtils.cs
- Freezable.cs
- NonParentingControl.cs
- LineSegment.cs
- HttpClientProtocol.cs
- UnsafeNativeMethods.cs
- ResizeGrip.cs
- ZipIOExtraFieldElement.cs
- Form.cs
- CacheDependency.cs
- FilterElement.cs
- ExternalFile.cs
- FormViewModeEventArgs.cs
- AdvancedBindingEditor.cs
- GraphicsContainer.cs
- Parser.cs
- GeneralTransform.cs
- TransportListener.cs
- XmlSignificantWhitespace.cs
- MenuItemStyleCollection.cs
- StringFreezingAttribute.cs
- UserInitiatedNavigationPermission.cs
- ToolStripPanelSelectionGlyph.cs
- _HeaderInfoTable.cs
- ServiceAuthorizationManager.cs
- SystemSounds.cs
- XhtmlStyleClass.cs
- SessionState.cs
- SmtpClient.cs
- WebPartZone.cs
- InvalidPropValue.cs
- smtpconnection.cs
- UInt64Storage.cs
- XmlSchemaSimpleTypeList.cs
- ReachFixedDocumentSerializerAsync.cs
- StringArrayConverter.cs
- MgmtConfigurationRecord.cs
- XmlHierarchicalEnumerable.cs
- TextDecorationUnitValidation.cs
- SqlFlattener.cs
- XmlQualifiedNameTest.cs
- Invariant.cs
- FilteredReadOnlyMetadataCollection.cs
- WindowsGraphics.cs
- EntityParameter.cs
- Image.cs
- DependencyObject.cs
- CriticalHandle.cs
- ConnectionPoint.cs
- TTSEvent.cs
- RegexCharClass.cs
- BuilderElements.cs
- SerializationInfo.cs
- GridViewDeletedEventArgs.cs
- BaseProcessProtocolHandler.cs
- ChangeInterceptorAttribute.cs
- MobileControlDesigner.cs
- HttpCookieCollection.cs
- MemberMaps.cs
- ColorBlend.cs
- ChannelReliableSession.cs
- MouseButtonEventArgs.cs
- CapabilitiesPattern.cs
- OdbcCommandBuilder.cs