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
- CodeStatementCollection.cs
- RangeValidator.cs
- TripleDES.cs
- StorageMappingItemLoader.cs
- DesignTimeParseData.cs
- XmlDataSourceView.cs
- EdmToObjectNamespaceMap.cs
- AsymmetricSignatureFormatter.cs
- WsdlBuildProvider.cs
- FileSecurity.cs
- XmlWrappingWriter.cs
- SimpleFieldTemplateUserControl.cs
- HeaderElement.cs
- HiddenFieldPageStatePersister.cs
- MediaCommands.cs
- OleStrCAMarshaler.cs
- CursorConverter.cs
- Subtree.cs
- DomNameTable.cs
- TrustManagerMoreInformation.cs
- WebAdminConfigurationHelper.cs
- GPPOINTF.cs
- Constraint.cs
- DataGridHelper.cs
- BeginStoryboard.cs
- VSWCFServiceContractGenerator.cs
- ObjectDesignerDataSourceView.cs
- HierarchicalDataTemplate.cs
- BoundingRectTracker.cs
- Binding.cs
- Math.cs
- StringValidator.cs
- NotCondition.cs
- GridView.cs
- TextDecoration.cs
- FormViewInsertEventArgs.cs
- XmlSchemaGroupRef.cs
- WebPartChrome.cs
- RelationshipNavigation.cs
- PropertyStore.cs
- ValidationErrorCollection.cs
- Maps.cs
- GenericRootAutomationPeer.cs
- WebHttpSecurityElement.cs
- OracleDataAdapter.cs
- RegexRunner.cs
- WpfKnownMember.cs
- BasicExpressionVisitor.cs
- PrintController.cs
- Stylesheet.cs
- DictionaryManager.cs
- ClientFormsAuthenticationMembershipProvider.cs
- XmlILOptimizerVisitor.cs
- HttpException.cs
- CompilerScopeManager.cs
- EmptyControlCollection.cs
- Behavior.cs
- TimelineCollection.cs
- EventPrivateKey.cs
- WindowsListViewGroupHelper.cs
- HttpChannelBindingToken.cs
- BitmapEffectInputData.cs
- ValidationErrorCollection.cs
- UriSchemeKeyedCollection.cs
- LabelLiteral.cs
- DataFormat.cs
- UIPermission.cs
- TitleStyle.cs
- PositiveTimeSpanValidatorAttribute.cs
- ASCIIEncoding.cs
- RayHitTestParameters.cs
- DateRangeEvent.cs
- ExtendedPropertyCollection.cs
- OracleNumber.cs
- ListBoxAutomationPeer.cs
- dataprotectionpermission.cs
- FocusManager.cs
- RpcAsyncResult.cs
- UpdatePanelControlTrigger.cs
- EntityContainer.cs
- ScriptingWebServicesSectionGroup.cs
- ImageListImageEditor.cs
- DateTimeSerializationSection.cs
- SByte.cs
- IsolatedStorageFileStream.cs
- StructuredTypeInfo.cs
- IsolatedStorageFilePermission.cs
- ZoneIdentityPermission.cs
- EntityDataSource.cs
- SoapInteropTypes.cs
- ResizingMessageFilter.cs
- ScaleTransform.cs
- SplashScreen.cs
- ResolveNameEventArgs.cs
- XPathScanner.cs
- AnnotationResource.cs
- Script.cs
- FormViewPagerRow.cs
- MessageEventSubscriptionService.cs
- ProtocolsSection.cs