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
- ServicePointManager.cs
- TextOptionsInternal.cs
- AstTree.cs
- ResolvedKeyFrameEntry.cs
- ForEachAction.cs
- XpsFilter.cs
- log.cs
- WeakReadOnlyCollection.cs
- TextViewBase.cs
- ProbeMatchesMessage11.cs
- GradientStop.cs
- SmiGettersStream.cs
- FontStretches.cs
- XmlSchemaParticle.cs
- TreeNodeEventArgs.cs
- DoubleLink.cs
- MappedMetaModel.cs
- ExtractorMetadata.cs
- SatelliteContractVersionAttribute.cs
- BamlVersionHeader.cs
- regiisutil.cs
- WebPartZoneCollection.cs
- DCSafeHandle.cs
- SendParametersContent.cs
- CmsInterop.cs
- FileChangeNotifier.cs
- RectKeyFrameCollection.cs
- WebConvert.cs
- OleStrCAMarshaler.cs
- BypassElement.cs
- ConvertTextFrag.cs
- _BaseOverlappedAsyncResult.cs
- ImportRequest.cs
- IisTraceListener.cs
- PriorityQueue.cs
- EntityDataSourceStatementEditorForm.cs
- EnvelopeVersion.cs
- MessageBox.cs
- SafeSecurityHelper.cs
- PageThemeCodeDomTreeGenerator.cs
- diagnosticsswitches.cs
- RoleServiceManager.cs
- ApplicationHost.cs
- UInt16Storage.cs
- CacheOutputQuery.cs
- FileSystemWatcher.cs
- MachineKey.cs
- Rect3D.cs
- XamlSerializationHelper.cs
- RangeBase.cs
- TransactionException.cs
- CaseInsensitiveComparer.cs
- RawUIStateInputReport.cs
- ObjectCloneHelper.cs
- SQLBoolean.cs
- _NtlmClient.cs
- MaskedTextBoxDesigner.cs
- UniformGrid.cs
- Subtree.cs
- UnsettableComboBox.cs
- elementinformation.cs
- webbrowsersite.cs
- EdmComplexTypeAttribute.cs
- FormsAuthenticationCredentials.cs
- ConfigPathUtility.cs
- PropertySegmentSerializer.cs
- PointConverter.cs
- RegisteredScript.cs
- GetWorkflowTree.cs
- ZipIOLocalFileDataDescriptor.cs
- NodeFunctions.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PersonalizationEntry.cs
- Win32Native.cs
- DecimalStorage.cs
- XmlWriterSettings.cs
- SubclassTypeValidatorAttribute.cs
- GAC.cs
- ProviderSettingsCollection.cs
- OdbcConnectionHandle.cs
- ProfileInfo.cs
- TabletCollection.cs
- VirtualDirectoryMappingCollection.cs
- CounterNameConverter.cs
- ColorEditor.cs
- TraceContextEventArgs.cs
- DecimalStorage.cs
- WsdlWriter.cs
- figurelengthconverter.cs
- PlatformCulture.cs
- XmlAttributeOverrides.cs
- SqlNodeAnnotation.cs
- ZeroOpNode.cs
- DbDataRecord.cs
- DbFunctionCommandTree.cs
- CryptoStream.cs
- WebRequestModuleElement.cs
- RoutedEvent.cs
- GridViewEditEventArgs.cs
- dbenumerator.cs