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
- QueryRelOp.cs
- CompressionTracing.cs
- UTF32Encoding.cs
- DataControlFieldCell.cs
- TextBoxAutoCompleteSourceConverter.cs
- RegisteredDisposeScript.cs
- StorageEntitySetMapping.cs
- StringFreezingAttribute.cs
- XmlSchemaInferenceException.cs
- DomNameTable.cs
- OleDbErrorCollection.cs
- DiagnosticStrings.cs
- WebSysDefaultValueAttribute.cs
- FixedDSBuilder.cs
- SqlInfoMessageEvent.cs
- WebPartDescriptionCollection.cs
- TableItemPatternIdentifiers.cs
- HandleRef.cs
- ContextToken.cs
- DecoderReplacementFallback.cs
- SspiSecurityTokenParameters.cs
- GroupLabel.cs
- ObjectMemberMapping.cs
- XamlGridLengthSerializer.cs
- TextDecoration.cs
- WindowsGraphics.cs
- SqlBinder.cs
- Certificate.cs
- CallTemplateAction.cs
- SQLByte.cs
- SHA512.cs
- PointUtil.cs
- XmlUtilWriter.cs
- XmlFormatReaderGenerator.cs
- BitmapImage.cs
- StringConcat.cs
- ClientSettingsStore.cs
- Knowncolors.cs
- XmlSchemaSimpleContentExtension.cs
- TextAdaptor.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Condition.cs
- ListDictionaryInternal.cs
- UIElement3DAutomationPeer.cs
- ServiceControllerDesigner.cs
- PersonalizationProviderHelper.cs
- Accessible.cs
- Msec.cs
- XmlSchemaParticle.cs
- TypeDescriptionProviderAttribute.cs
- ServerValidateEventArgs.cs
- DeploymentSection.cs
- DataControlField.cs
- InternalSendMessage.cs
- XamlFigureLengthSerializer.cs
- ErrorWrapper.cs
- TextBoxView.cs
- glyphs.cs
- DocumentPageTextView.cs
- EventBookmark.cs
- XmlSchemaSimpleTypeUnion.cs
- DWriteFactory.cs
- _RequestCacheProtocol.cs
- ComMethodElementCollection.cs
- XmlNamespaceMappingCollection.cs
- ChangeTracker.cs
- DynamicQueryableWrapper.cs
- SoapExtensionTypeElementCollection.cs
- RemoveStoryboard.cs
- SharedPerformanceCounter.cs
- RecognizeCompletedEventArgs.cs
- WebConfigurationHost.cs
- OLEDB_Util.cs
- NamedPipeConnectionPoolSettings.cs
- MenuAdapter.cs
- FileClassifier.cs
- PublisherMembershipCondition.cs
- BooleanExpr.cs
- DateTimePicker.cs
- RoleManagerSection.cs
- DocumentCollection.cs
- LinkArea.cs
- DataGridTablesFactory.cs
- GenerateHelper.cs
- LoginCancelEventArgs.cs
- LocalizabilityAttribute.cs
- SafeHGlobalHandleCritical.cs
- SetterBaseCollection.cs
- Condition.cs
- ObjectDisposedException.cs
- XmlSchemaSubstitutionGroup.cs
- ThicknessAnimationBase.cs
- DataList.cs
- SortDescription.cs
- AccessDataSource.cs
- UriWriter.cs
- DataGridTablesFactory.cs
- DateTimeHelper.cs
- XmlSchemaComplexType.cs
- Errors.cs