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
- ScriptDescriptor.cs
- CancelEventArgs.cs
- ProbeDuplex11AsyncResult.cs
- UInt16Converter.cs
- BamlVersionHeader.cs
- EventPropertyMap.cs
- LinearKeyFrames.cs
- SmiEventStream.cs
- EventArgs.cs
- ToolStripRendererSwitcher.cs
- DateTimeOffsetStorage.cs
- CheckBoxRenderer.cs
- MessageSmuggler.cs
- DesignBindingConverter.cs
- MemberJoinTreeNode.cs
- CodeDirectionExpression.cs
- ByteConverter.cs
- DomNameTable.cs
- UnknownBitmapEncoder.cs
- DataGridViewBindingCompleteEventArgs.cs
- __Filters.cs
- Typography.cs
- DiagnosticsConfigurationHandler.cs
- StorageComplexPropertyMapping.cs
- EncryptedType.cs
- SelectedDatesCollection.cs
- ProbeMatchesCD1.cs
- SqlConnectionStringBuilder.cs
- EndpointBehaviorElement.cs
- FaultContractInfo.cs
- Stylesheet.cs
- ExceptionUtil.cs
- CustomErrorCollection.cs
- SqlFacetAttribute.cs
- SerializationInfoEnumerator.cs
- PackagePartCollection.cs
- PreservationFileReader.cs
- DependencyPropertyKind.cs
- EmptyStringExpandableObjectConverter.cs
- ClientUrlResolverWrapper.cs
- ResourceKey.cs
- Int32Storage.cs
- CharEnumerator.cs
- ValueProviderWrapper.cs
- IssuedTokenClientBehaviorsElement.cs
- Rule.cs
- CommandValueSerializer.cs
- TextLine.cs
- DispatcherTimer.cs
- SqlIdentifier.cs
- SqlDataSourceDesigner.cs
- SystemNetworkInterface.cs
- MergablePropertyAttribute.cs
- COM2FontConverter.cs
- CacheVirtualItemsEvent.cs
- TypeSystemProvider.cs
- WmlLinkAdapter.cs
- sqlcontext.cs
- wmiutil.cs
- InlineCollection.cs
- PaperSource.cs
- EntityDataSourceQueryBuilder.cs
- BitConverter.cs
- PerspectiveCamera.cs
- TypeDelegator.cs
- LOSFormatter.cs
- DataSourceCache.cs
- ExpressionLexer.cs
- ToolStripDropDownClosingEventArgs.cs
- RawKeyboardInputReport.cs
- EntityDataSourceMemberPath.cs
- Visual3D.cs
- Lasso.cs
- BitmapEffect.cs
- ViewRendering.cs
- AttributeSetAction.cs
- ScriptingAuthenticationServiceSection.cs
- Function.cs
- HttpServerVarsCollection.cs
- CompilerCollection.cs
- StylusPointPropertyInfo.cs
- TextRangeEditTables.cs
- ResourceReader.cs
- ManagementEventWatcher.cs
- XmlNamespaceManager.cs
- ReferenceConverter.cs
- XmlRawWriter.cs
- WindowsContainer.cs
- KeyboardDevice.cs
- JpegBitmapEncoder.cs
- DrawingBrush.cs
- RoleGroupCollection.cs
- EventWaitHandleSecurity.cs
- ActivityCodeDomSerializer.cs
- OleDbMetaDataFactory.cs
- IFlowDocumentViewer.cs
- x509utils.cs
- Path.cs
- RTLAwareMessageBox.cs
- PermissionToken.cs