Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / TouchFrameEventArgs.cs / 1305600 / TouchFrameEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Input; namespace System.Windows.Input { ////// Event arguments for the Touch.FrameReported event. /// public sealed class TouchFrameEventArgs : EventArgs { ////// Creates a new instance of this class. /// /// internal TouchFrameEventArgs(int timestamp) { Timestamp = timestamp; } ////// The timestamp for this event. /// public int Timestamp { get; private set; } ////// Retrieves the current touch point for ever touch device that is currently active. /// /// Defines the coordinate space of the touch point. ///A collection of touch points. public TouchPointCollection GetTouchPoints(IInputElement relativeTo) { return TouchDevice.GetTouchPoints(relativeTo); } ////// Retrieves the current touch point of the primary touch device, if one exists. /// /// Defines the coordinate space of the touch point. ///The touch point of the primary device or null if no device is a primary device. public TouchPoint GetPrimaryTouchPoint(IInputElement relativeTo) { return TouchDevice.GetPrimaryTouchPoint(relativeTo); } ////// Suspends mouse promotion from this point until a touch up. /// ////// This API is provided for Silverlight compatibility, but due to device /// implementation differences, this method doesn't actually do anything. /// public void SuspendMousePromotionUntilTouchUp() { // } } } // 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.Windows; using System.Windows.Input; namespace System.Windows.Input { ////// Event arguments for the Touch.FrameReported event. /// public sealed class TouchFrameEventArgs : EventArgs { ////// Creates a new instance of this class. /// /// internal TouchFrameEventArgs(int timestamp) { Timestamp = timestamp; } ////// The timestamp for this event. /// public int Timestamp { get; private set; } ////// Retrieves the current touch point for ever touch device that is currently active. /// /// Defines the coordinate space of the touch point. ///A collection of touch points. public TouchPointCollection GetTouchPoints(IInputElement relativeTo) { return TouchDevice.GetTouchPoints(relativeTo); } ////// Retrieves the current touch point of the primary touch device, if one exists. /// /// Defines the coordinate space of the touch point. ///The touch point of the primary device or null if no device is a primary device. public TouchPoint GetPrimaryTouchPoint(IInputElement relativeTo) { return TouchDevice.GetPrimaryTouchPoint(relativeTo); } ////// Suspends mouse promotion from this point until a touch up. /// ////// This API is provided for Silverlight compatibility, but due to device /// implementation differences, this method doesn't actually do anything. /// public void SuspendMousePromotionUntilTouchUp() { // } } } // 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
- SQLConvert.cs
- cookie.cs
- PropertyChangeTracker.cs
- ErasingStroke.cs
- ReversePositionQuery.cs
- PathGeometry.cs
- HttpHandler.cs
- ChooseAction.cs
- PenThread.cs
- ServiceElement.cs
- MemberAssignmentAnalysis.cs
- CompilationRelaxations.cs
- ListViewUpdateEventArgs.cs
- DelegateInArgument.cs
- DataServiceResponse.cs
- Missing.cs
- DateTimeSerializationSection.cs
- NotifyParentPropertyAttribute.cs
- XmlSchemaInfo.cs
- ClientTargetSection.cs
- StyleReferenceConverter.cs
- ColorDialog.cs
- RegexCode.cs
- UnsettableComboBox.cs
- TraceData.cs
- DataPagerField.cs
- ContextBase.cs
- TypeElement.cs
- ViewBase.cs
- lengthconverter.cs
- Action.cs
- NavigationProgressEventArgs.cs
- DeclaredTypeValidator.cs
- EncryptedPackage.cs
- Container.cs
- UnsafeNativeMethods.cs
- VisualStyleTypesAndProperties.cs
- ContentElementAutomationPeer.cs
- EntityDataSourceUtil.cs
- TrackingServices.cs
- DataGridViewLinkCell.cs
- TableRow.cs
- SoapRpcMethodAttribute.cs
- ServiceDescription.cs
- WbemException.cs
- DataGridRelationshipRow.cs
- WebPartVerbsEventArgs.cs
- LinearQuaternionKeyFrame.cs
- GraphicsState.cs
- XmlSchemaObjectTable.cs
- XamlLoadErrorInfo.cs
- ItemMap.cs
- CngKey.cs
- Pair.cs
- QilCloneVisitor.cs
- Array.cs
- ScriptDescriptor.cs
- SqlWorkflowPersistenceService.cs
- TemplateBindingExpressionConverter.cs
- HttpClientProtocol.cs
- GlyphCache.cs
- InternalConfigSettingsFactory.cs
- CodeEntryPointMethod.cs
- URLMembershipCondition.cs
- ServiceOperationParameter.cs
- Point3DIndependentAnimationStorage.cs
- Freezable.cs
- Attributes.cs
- SoapElementAttribute.cs
- MethodAccessException.cs
- securitycriticaldata.cs
- ConfigurationValue.cs
- TabControlAutomationPeer.cs
- TimeoutHelper.cs
- Thickness.cs
- KnownAssembliesSet.cs
- XmlParserContext.cs
- DrawingGroup.cs
- ColumnMapVisitor.cs
- IndentTextWriter.cs
- SystemColorTracker.cs
- SqlMultiplexer.cs
- AmbientValueAttribute.cs
- ByteStreamMessageEncodingElement.cs
- Accessors.cs
- MatrixCamera.cs
- EqualityComparer.cs
- Vector.cs
- SortAction.cs
- PeerCustomResolverElement.cs
- Domain.cs
- XmlUtilWriter.cs
- TemplatedWizardStep.cs
- GeneralTransform3DTo2DTo3D.cs
- ListenerSingletonConnectionReader.cs
- BounceEase.cs
- Overlapped.cs
- OleDbInfoMessageEvent.cs
- HtmlInputRadioButton.cs
- FontNameConverter.cs