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
- RelationalExpressions.cs
- SslStream.cs
- SQLUtility.cs
- XmlSchemaAttribute.cs
- Dictionary.cs
- ObjectListFieldsPage.cs
- TextRenderer.cs
- ButtonStandardAdapter.cs
- HttpHandlerActionCollection.cs
- AuthenticationModuleElement.cs
- GuidConverter.cs
- FlowDocumentPage.cs
- DataService.cs
- ApplicationException.cs
- odbcmetadatacolumnnames.cs
- PropertyPushdownHelper.cs
- MD5CryptoServiceProvider.cs
- SafeCryptHandles.cs
- TimelineGroup.cs
- LicenseContext.cs
- TransformerTypeCollection.cs
- VersionValidator.cs
- ChannelDispatcherBase.cs
- MessageSecurityTokenVersion.cs
- TrustManagerPromptUI.cs
- IPEndPoint.cs
- XmlUtil.cs
- CornerRadius.cs
- HijriCalendar.cs
- SamlSerializer.cs
- SizeConverter.cs
- MimeMapping.cs
- RequestQueryParser.cs
- IntegerValidator.cs
- Attributes.cs
- SelectionProviderWrapper.cs
- ConfigurationLockCollection.cs
- SizeAnimationClockResource.cs
- SwitchElementsCollection.cs
- PixelFormats.cs
- ObservableCollectionDefaultValueFactory.cs
- ToolboxItemLoader.cs
- PageScaling.cs
- BasicViewGenerator.cs
- EFColumnProvider.cs
- WindowsFont.cs
- XmlRootAttribute.cs
- SortedSet.cs
- ItemCheckEvent.cs
- BrushConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- WSSecurityPolicy12.cs
- SqlCachedBuffer.cs
- ConfigurationPropertyAttribute.cs
- TreeViewEvent.cs
- TextSelectionHelper.cs
- SHA1CryptoServiceProvider.cs
- UnsafeNativeMethods.cs
- DirtyTextRange.cs
- _CookieModule.cs
- FocusWithinProperty.cs
- HttpListenerException.cs
- WebDescriptionAttribute.cs
- Focus.cs
- VectorAnimationBase.cs
- SQLDecimalStorage.cs
- DynamicDiscoSearcher.cs
- CmsInterop.cs
- Timer.cs
- AnnotationComponentChooser.cs
- XmlSchemaChoice.cs
- ISAPIApplicationHost.cs
- ExceptionHandler.cs
- MenuItemCollection.cs
- ValidationErrorCollection.cs
- COM2IProvidePropertyBuilderHandler.cs
- CuspData.cs
- CacheRequest.cs
- StringAttributeCollection.cs
- DocumentApplicationJournalEntry.cs
- DeploymentSection.cs
- HttpConfigurationContext.cs
- MergablePropertyAttribute.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- BuildProvider.cs
- OleDbInfoMessageEvent.cs
- StylusPointPropertyInfo.cs
- DbCommandDefinition.cs
- XmlSchemaComplexType.cs
- WindowsIPAddress.cs
- WindowsGraphicsWrapper.cs
- BinaryMethodMessage.cs
- Codec.cs
- TextOptionsInternal.cs
- HttpProfileBase.cs
- HttpHandlerActionCollection.cs
- SqlVisitor.cs
- SegmentInfo.cs
- DataGridItem.cs
- EntryPointNotFoundException.cs