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
- UInt16Storage.cs
- RtType.cs
- TransactedBatchingBehavior.cs
- CallContext.cs
- mediaeventargs.cs
- DesignerActionUI.cs
- UnauthorizedWebPart.cs
- AlternationConverter.cs
- TabControlAutomationPeer.cs
- TransformerInfo.cs
- QueryContinueDragEventArgs.cs
- ProtectedConfigurationSection.cs
- Mapping.cs
- RegexCaptureCollection.cs
- XmlSiteMapProvider.cs
- ToolboxCategoryItems.cs
- BinHexDecoder.cs
- HttpCachePolicy.cs
- ReaderWriterLock.cs
- Object.cs
- MainMenu.cs
- EntityEntry.cs
- MessageQueueCriteria.cs
- SymDocumentType.cs
- BindingNavigator.cs
- DataColumn.cs
- CodeDomSerializerBase.cs
- WebReference.cs
- DoubleLink.cs
- UidManager.cs
- CompositeFontInfo.cs
- HttpApplicationFactory.cs
- XmlDataProvider.cs
- Normalization.cs
- DesignerTransactionCloseEvent.cs
- StylusEventArgs.cs
- InheritablePropertyChangeInfo.cs
- glyphs.cs
- FileVersionInfo.cs
- DynamicPropertyReader.cs
- ActivatedMessageQueue.cs
- SubclassTypeValidator.cs
- ScaleTransform.cs
- RelatedPropertyManager.cs
- BindingListCollectionView.cs
- HandlerFactoryCache.cs
- Point.cs
- DataGridViewSelectedRowCollection.cs
- RequestCachePolicy.cs
- BindingExpressionUncommonField.cs
- InputGestureCollection.cs
- FileDialogCustomPlace.cs
- TimeZone.cs
- TemplateControlBuildProvider.cs
- GradientSpreadMethodValidation.cs
- dtdvalidator.cs
- ObjectIDGenerator.cs
- SQLBinaryStorage.cs
- ETagAttribute.cs
- DesignerTransaction.cs
- JsonServiceDocumentSerializer.cs
- CardSpaceException.cs
- DataGridColumnReorderingEventArgs.cs
- LambdaReference.cs
- BamlReader.cs
- SoapAttributes.cs
- CultureInfoConverter.cs
- sqlpipe.cs
- HtmlElementCollection.cs
- SystemWebCachingSectionGroup.cs
- printdlgexmarshaler.cs
- TrackingProfileSerializer.cs
- ApplicationManager.cs
- RSAProtectedConfigurationProvider.cs
- QuotaExceededException.cs
- ByteRangeDownloader.cs
- ToolbarAUtomationPeer.cs
- ApplicationInfo.cs
- EmptyWithCancelationCheckWorkItem.cs
- Operand.cs
- SessionSwitchEventArgs.cs
- Axis.cs
- TransformFinalBlockRequest.cs
- ClickablePoint.cs
- EnumBuilder.cs
- DeferredReference.cs
- CheckBoxRenderer.cs
- TextPenaltyModule.cs
- Stroke.cs
- ReflectionHelper.cs
- DataSysAttribute.cs
- DeviceContexts.cs
- ExtensionWindowResizeGrip.cs
- PageRequestManager.cs
- TableAutomationPeer.cs
- XmlEnumAttribute.cs
- XNodeValidator.cs
- PartialCachingAttribute.cs
- EntityContainerEntitySet.cs
- DesignerUtility.cs