Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- WebControlParameterProxy.cs
- KeyValuePair.cs
- PeerEndPoint.cs
- SerializationSectionGroup.cs
- EdmMember.cs
- DataGrid.cs
- TextElementEnumerator.cs
- StorageModelBuildProvider.cs
- StringOutput.cs
- ExtendedProperty.cs
- TextEndOfLine.cs
- ColorAnimation.cs
- HwndHostAutomationPeer.cs
- CodeAttachEventStatement.cs
- ObjectViewEntityCollectionData.cs
- WebPartMinimizeVerb.cs
- PersonalizationStateQuery.cs
- EncryptedData.cs
- TraceFilter.cs
- SQLDouble.cs
- DSASignatureFormatter.cs
- PopupEventArgs.cs
- Freezable.cs
- UnionCqlBlock.cs
- XmlSchemaSimpleTypeUnion.cs
- TypeBrowser.xaml.cs
- _SecureChannel.cs
- ImageBrush.cs
- _SslStream.cs
- WasAdminWrapper.cs
- EventLogWatcher.cs
- ProfileGroupSettingsCollection.cs
- ExceptionUtil.cs
- PreviewKeyDownEventArgs.cs
- Point3DAnimationBase.cs
- DecoderNLS.cs
- Model3DGroup.cs
- TcpTransportBindingElement.cs
- DataSourceSelectArguments.cs
- BulletedList.cs
- CubicEase.cs
- OdbcStatementHandle.cs
- OneToOneMappingSerializer.cs
- URL.cs
- AttachmentCollection.cs
- AssemblyGen.cs
- XmlSchemaSimpleTypeUnion.cs
- Line.cs
- Point3DAnimationUsingKeyFrames.cs
- TreeNode.cs
- ObjectQueryState.cs
- XPathParser.cs
- SmtpReplyReaderFactory.cs
- BasicExpressionVisitor.cs
- Int32CollectionValueSerializer.cs
- EditorZone.cs
- ComponentDispatcher.cs
- SecurityNegotiationException.cs
- ListItemsCollectionEditor.cs
- PngBitmapDecoder.cs
- DrawingGroup.cs
- PowerModeChangedEventArgs.cs
- x509store.cs
- TraceUtils.cs
- EncryptedXml.cs
- COM2Properties.cs
- PropertyFilterAttribute.cs
- PeekCompletedEventArgs.cs
- sqlstateclientmanager.cs
- FormatterServices.cs
- XamlSerializerUtil.cs
- XmlArrayAttribute.cs
- AuthStoreRoleProvider.cs
- FormViewDeleteEventArgs.cs
- SponsorHelper.cs
- CommentAction.cs
- BlockUIContainer.cs
- EntityProxyTypeInfo.cs
- Parameter.cs
- PointLightBase.cs
- TagPrefixInfo.cs
- _LazyAsyncResult.cs
- OleCmdHelper.cs
- PathFigureCollection.cs
- AnonymousIdentificationModule.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- HostingEnvironmentException.cs
- ClientScriptManager.cs
- CacheDependency.cs
- BulletedListEventArgs.cs
- RegionIterator.cs
- ErrorStyle.cs
- ConnectionPointGlyph.cs
- FillBehavior.cs
- ObjectSecurity.cs
- EventDescriptorCollection.cs
- EmptyControlCollection.cs
- CompilerGeneratedAttribute.cs
- Separator.cs
- HttpVersion.cs