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
- adornercollection.cs
- SkinIDTypeConverter.cs
- RegisteredScript.cs
- InheritanceContextChangedEventManager.cs
- ThreadAbortException.cs
- IListConverters.cs
- ApplicationContext.cs
- ManagementException.cs
- LogFlushAsyncResult.cs
- DrawingDrawingContext.cs
- OrderPreservingMergeHelper.cs
- WindowsSysHeader.cs
- SynchronizedDispatch.cs
- SapiRecognizer.cs
- SuppressMessageAttribute.cs
- CatalogZone.cs
- PixelFormat.cs
- ListBoxDesigner.cs
- X509CertificateCollection.cs
- GridViewEditEventArgs.cs
- Win32PrintDialog.cs
- HtmlElementEventArgs.cs
- EnterpriseServicesHelper.cs
- WindowsGraphicsCacheManager.cs
- CharacterHit.cs
- InkPresenter.cs
- CollectionAdapters.cs
- SemaphoreFullException.cs
- TextSelectionProcessor.cs
- CombinedGeometry.cs
- ButtonBase.cs
- NameValueSectionHandler.cs
- PassportAuthenticationModule.cs
- IPHostEntry.cs
- MissingMemberException.cs
- DoubleConverter.cs
- CodeAttributeArgumentCollection.cs
- IndexingContentUnit.cs
- Region.cs
- SqlDataSourceView.cs
- CompModSwitches.cs
- ControlCollection.cs
- UserPersonalizationStateInfo.cs
- UnsafeNativeMethods.cs
- EntityViewGenerationAttribute.cs
- ClearTypeHintValidation.cs
- Update.cs
- SqlInternalConnectionSmi.cs
- EnumBuilder.cs
- NavigationFailedEventArgs.cs
- EventLogHandle.cs
- InputProviderSite.cs
- ConnectionManagementSection.cs
- EnumValAlphaComparer.cs
- WebPartZone.cs
- HttpModuleCollection.cs
- AddressingProperty.cs
- MouseActionConverter.cs
- NativeMethods.cs
- ExpressionBuilderCollection.cs
- EncoderParameter.cs
- DataRelationPropertyDescriptor.cs
- ComponentSerializationService.cs
- CurrencyWrapper.cs
- ButtonChrome.cs
- DataPagerFieldCollection.cs
- Point3DAnimationUsingKeyFrames.cs
- QuaternionAnimationUsingKeyFrames.cs
- CompressedStack.cs
- XamlSerializerUtil.cs
- SoundPlayerAction.cs
- _NetworkingPerfCounters.cs
- IODescriptionAttribute.cs
- FlowchartStart.xaml.cs
- RoutingTable.cs
- DataGridColumnHeaderAutomationPeer.cs
- KerberosSecurityTokenProvider.cs
- ConfigXmlAttribute.cs
- DocumentGrid.cs
- ProviderCommandInfoUtils.cs
- BehaviorEditorPart.cs
- DataGridViewCellStyleConverter.cs
- ByteStreamGeometryContext.cs
- SqlCacheDependencyDatabaseCollection.cs
- HotSpotCollection.cs
- AssemblyBuilder.cs
- Point3DAnimation.cs
- NetMsmqSecurityMode.cs
- SystemIPGlobalStatistics.cs
- WriterOutput.cs
- Trace.cs
- ExpressionEditor.cs
- ImageKeyConverter.cs
- TextFindEngine.cs
- QueryCursorEventArgs.cs
- OracleConnectionStringBuilder.cs
- TcpProcessProtocolHandler.cs
- CriticalFinalizerObject.cs
- SqlParameter.cs
- ClipboardProcessor.cs