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
- CacheMemory.cs
- StatusBarPanelClickEvent.cs
- ZipIOLocalFileDataDescriptor.cs
- GraphicsPath.cs
- Rotation3D.cs
- ToolStripDesignerAvailabilityAttribute.cs
- TabControlDesigner.cs
- XmlWrappingWriter.cs
- SqlConnectionManager.cs
- SqlBooleanizer.cs
- MailSettingsSection.cs
- ObjectQueryState.cs
- SmtpLoginAuthenticationModule.cs
- TdsParserStateObject.cs
- OleDbException.cs
- ImpersonationContext.cs
- ToolStripDropTargetManager.cs
- NegatedCellConstant.cs
- ClientScriptManagerWrapper.cs
- BaseDataBoundControl.cs
- GiveFeedbackEventArgs.cs
- DropDownButton.cs
- ImportException.cs
- ObjectParameterCollection.cs
- PrimitiveType.cs
- X509Chain.cs
- RoleServiceManager.cs
- CompressStream.cs
- Part.cs
- ImpersonateTokenRef.cs
- EventWaitHandle.cs
- InputReport.cs
- TraceFilter.cs
- SignatureHelper.cs
- ITreeGenerator.cs
- FreezableOperations.cs
- TdsParser.cs
- InteropTrackingRecord.cs
- ApplicationProxyInternal.cs
- AtomMaterializerLog.cs
- ActivitySurrogate.cs
- XmlSchemaValidator.cs
- ArrayHelper.cs
- InheritanceContextChangedEventManager.cs
- RepeaterItemEventArgs.cs
- _UriSyntax.cs
- RegexMatch.cs
- SecurityUtils.cs
- EllipseGeometry.cs
- RegexGroup.cs
- AutomationAttributeInfo.cs
- initElementDictionary.cs
- Vector3D.cs
- XmlNamespaceDeclarationsAttribute.cs
- ComplexTypeEmitter.cs
- PropertyValueChangedEvent.cs
- ColumnClickEvent.cs
- IisTraceWebEventProvider.cs
- ThreadAttributes.cs
- ButtonBase.cs
- TextViewSelectionProcessor.cs
- MembershipSection.cs
- NavigationPropertyEmitter.cs
- MatrixKeyFrameCollection.cs
- RsaSecurityTokenAuthenticator.cs
- Label.cs
- SerTrace.cs
- CorrelationResolver.cs
- XmlSerializerNamespaces.cs
- Int32AnimationUsingKeyFrames.cs
- ConfigXmlDocument.cs
- AnnotationResourceChangedEventArgs.cs
- SQLByte.cs
- EntityDataSourceStatementEditorForm.cs
- PriorityBindingExpression.cs
- documentsequencetextpointer.cs
- ListItemCollection.cs
- __ConsoleStream.cs
- XmlArrayAttribute.cs
- SqlDataSourceCommandEventArgs.cs
- GB18030Encoding.cs
- SqlMethodTransformer.cs
- WindowsFont.cs
- NaturalLanguageHyphenator.cs
- DockPattern.cs
- PackageDigitalSignatureManager.cs
- FullTextLine.cs
- ListViewItem.cs
- SetterBaseCollection.cs
- XAMLParseException.cs
- CodeExpressionStatement.cs
- ObjectFullSpanRewriter.cs
- InputLanguageSource.cs
- RedirectionProxy.cs
- SliderAutomationPeer.cs
- VectorAnimation.cs
- SecUtil.cs
- ProxyGenerationError.cs
- Win32.cs
- DataColumnMappingCollection.cs