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
- HtmlTableRowCollection.cs
- ResolvedKeyFrameEntry.cs
- TextServicesDisplayAttributePropertyRanges.cs
- RuleEngine.cs
- ResXResourceReader.cs
- UIElementAutomationPeer.cs
- GridViewCommandEventArgs.cs
- TreeViewImageIndexConverter.cs
- Win32PrintDialog.cs
- FormDesigner.cs
- IEnumerable.cs
- DoubleLinkList.cs
- PageThemeParser.cs
- XamlReader.cs
- ServiceNameElement.cs
- TimeZone.cs
- OwnerDrawPropertyBag.cs
- DesignerSerializationOptionsAttribute.cs
- DrawingBrush.cs
- PathFigureCollection.cs
- CompositeControl.cs
- DataIdProcessor.cs
- SourceFilter.cs
- FontNamesConverter.cs
- CompModSwitches.cs
- Int64AnimationUsingKeyFrames.cs
- PrintDialogException.cs
- ImageCollectionCodeDomSerializer.cs
- ErrorItem.cs
- SoapFormatterSinks.cs
- SharedUtils.cs
- DefaultEventAttribute.cs
- TextAction.cs
- DoubleIndependentAnimationStorage.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ProfileParameter.cs
- ParameterModifier.cs
- FtpCachePolicyElement.cs
- FixedDocumentSequencePaginator.cs
- CodeCommentStatement.cs
- EntityDataSourceDataSelection.cs
- SoapHeaderAttribute.cs
- MultiSelector.cs
- CompositeDataBoundControl.cs
- SslStreamSecurityUpgradeProvider.cs
- DataGridCaption.cs
- WebPartsPersonalizationAuthorization.cs
- EncodingInfo.cs
- MembershipPasswordException.cs
- ContextBase.cs
- XPathNodeInfoAtom.cs
- UIHelper.cs
- XsdDuration.cs
- PageAsyncTaskManager.cs
- BasicHttpSecurityElement.cs
- VisualStyleInformation.cs
- SectionInput.cs
- StyleHelper.cs
- UnsafeNativeMethods.cs
- UnsafeNativeMethods.cs
- Track.cs
- HtmlInputPassword.cs
- DuplicateDetector.cs
- Stacktrace.cs
- AssemblyCache.cs
- TextFormatter.cs
- DirectoryInfo.cs
- ReadWriteSpinLock.cs
- ReflectPropertyDescriptor.cs
- OrderByLifter.cs
- InvokeHandlers.cs
- HashHelper.cs
- RelationshipDetailsCollection.cs
- ContentType.cs
- StringDictionaryWithComparer.cs
- GrammarBuilder.cs
- MemoryMappedViewStream.cs
- StreamedWorkflowDefinitionContext.cs
- XmlEventCache.cs
- xml.cs
- webproxy.cs
- StringFreezingAttribute.cs
- AuthenticationModulesSection.cs
- DefaultBindingPropertyAttribute.cs
- LinqDataSourceHelper.cs
- TileModeValidation.cs
- FormClosedEvent.cs
- ObjectPersistData.cs
- QueryInterceptorAttribute.cs
- DBBindings.cs
- ByteStream.cs
- SortQuery.cs
- ImpersonationContext.cs
- StorageModelBuildProvider.cs
- GenericAuthenticationEventArgs.cs
- CircleHotSpot.cs
- TextMetrics.cs
- ElementNotAvailableException.cs
- DelegatedStream.cs
- TextEmbeddedObject.cs