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
- TreeView.cs
- TempFiles.cs
- _KerberosClient.cs
- GlobalItem.cs
- StorageAssociationSetMapping.cs
- ResourcesGenerator.cs
- ChildTable.cs
- LinqDataSourceStatusEventArgs.cs
- IPGlobalProperties.cs
- DoubleCollectionConverter.cs
- CallInfo.cs
- ServiceDescriptions.cs
- Imaging.cs
- FontFamily.cs
- DockPanel.cs
- EnumerableRowCollection.cs
- TreeViewAutomationPeer.cs
- WebBrowsableAttribute.cs
- SqlLiftWhereClauses.cs
- UserControlParser.cs
- HttpResponseHeader.cs
- ValueQuery.cs
- Highlights.cs
- PropertyTab.cs
- ModuleBuilderData.cs
- TransformedBitmap.cs
- TextEvent.cs
- RequestCachingSection.cs
- ClassicBorderDecorator.cs
- DataBoundControlHelper.cs
- ToolStripDropDown.cs
- DashStyles.cs
- ByteStreamGeometryContext.cs
- VisualStyleInformation.cs
- Canvas.cs
- ColorAnimationBase.cs
- BindToObject.cs
- EventBuilder.cs
- DateBoldEvent.cs
- ComponentSerializationService.cs
- DriveNotFoundException.cs
- ConfigurationException.cs
- TypeContext.cs
- MessageDescription.cs
- GorillaCodec.cs
- RouteUrlExpressionBuilder.cs
- WebSysDisplayNameAttribute.cs
- ConnectionPointCookie.cs
- SqlInfoMessageEvent.cs
- Subtree.cs
- _CookieModule.cs
- EpmSourceTree.cs
- JavaScriptObjectDeserializer.cs
- LogConverter.cs
- SqlBulkCopyColumnMapping.cs
- ExpandedWrapper.cs
- TdsRecordBufferSetter.cs
- MailWebEventProvider.cs
- TagNameToTypeMapper.cs
- SystemWebSectionGroup.cs
- TemplatedAdorner.cs
- Composition.cs
- SQLUtility.cs
- SqlMethodAttribute.cs
- LabelAutomationPeer.cs
- DataGridViewCheckBoxCell.cs
- MD5CryptoServiceProvider.cs
- XpsFilter.cs
- PeerResolver.cs
- DataKey.cs
- SqlTriggerContext.cs
- SoapAttributeAttribute.cs
- itemelement.cs
- Formatter.cs
- FacetChecker.cs
- PathFigure.cs
- DataGridViewIntLinkedList.cs
- PenThread.cs
- SqlInfoMessageEvent.cs
- SoapSchemaExporter.cs
- DataControlFieldHeaderCell.cs
- ImageAnimator.cs
- grammarelement.cs
- mongolianshape.cs
- PopupRoot.cs
- TrackingMemoryStreamFactory.cs
- ByeMessageCD1.cs
- SharedStatics.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- PersonalizationStateQuery.cs
- CodeMethodInvokeExpression.cs
- SchemaImporterExtensionElementCollection.cs
- EventBuilder.cs
- BitVec.cs
- ModelItemDictionaryImpl.cs
- FloaterBaseParagraph.cs
- GetChildSubtree.cs
- COM2EnumConverter.cs
- DeadCharTextComposition.cs
- WebPartUserCapability.cs