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
- MetadataArtifactLoaderFile.cs
- ObjectStateManagerMetadata.cs
- XPathDocumentBuilder.cs
- ThrowHelper.cs
- UIElement.cs
- RegexRunnerFactory.cs
- ToolStripDropDown.cs
- TextModifier.cs
- MultilineStringEditor.cs
- XmlToDatasetMap.cs
- XmlWrappingReader.cs
- LowerCaseStringConverter.cs
- dtdvalidator.cs
- OpenTypeLayoutCache.cs
- DateTimeOffsetConverter.cs
- XmlQueryContext.cs
- RowBinding.cs
- HtmlMobileTextWriter.cs
- PagedControl.cs
- RoutedCommand.cs
- ConsoleEntryPoint.cs
- JapaneseLunisolarCalendar.cs
- PackageStore.cs
- ExtensionQuery.cs
- MetadataArtifactLoaderFile.cs
- BitConverter.cs
- NominalTypeEliminator.cs
- ProfessionalColors.cs
- FormParameter.cs
- FilterException.cs
- HttpHandlersSection.cs
- TreeNodeClickEventArgs.cs
- XmlSerializationWriter.cs
- QilNode.cs
- CannotUnloadAppDomainException.cs
- PointAnimationClockResource.cs
- EntityDataSourceContextCreatingEventArgs.cs
- ProjectionCamera.cs
- ResourceExpressionBuilder.cs
- Vector3DValueSerializer.cs
- FlowPosition.cs
- SQLMembershipProvider.cs
- ReadOnlyAttribute.cs
- RadioButtonBaseAdapter.cs
- HttpPostedFileWrapper.cs
- StorageComplexTypeMapping.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DataRecordInfo.cs
- WeakReference.cs
- KoreanCalendar.cs
- SinglePhaseEnlistment.cs
- ToolStripLabel.cs
- UInt64.cs
- NonBatchDirectoryCompiler.cs
- NumericUpDownAccelerationCollection.cs
- CodeDelegateInvokeExpression.cs
- recordstatefactory.cs
- MenuItemCollection.cs
- FlowLayoutPanel.cs
- ContentIterators.cs
- SqlDataSourceQueryEditorForm.cs
- SyndicationFeedFormatter.cs
- ContractNamespaceAttribute.cs
- HostingEnvironmentSection.cs
- Cursor.cs
- PriorityBindingExpression.cs
- ServiceDescription.cs
- TextLineBreak.cs
- EventLogPermissionEntry.cs
- ExceptionRoutedEventArgs.cs
- FlatButtonAppearance.cs
- SqlCommandSet.cs
- WindowsUpDown.cs
- RedBlackList.cs
- FlowLayoutSettings.cs
- CalendarData.cs
- UserControlDocumentDesigner.cs
- IOThreadTimer.cs
- XPathArrayIterator.cs
- DataGridItem.cs
- Table.cs
- TrayIconDesigner.cs
- SByte.cs
- ArrayWithOffset.cs
- ALinqExpressionVisitor.cs
- XmlElementAttributes.cs
- ListenerConnectionModeReader.cs
- UrlMappingsSection.cs
- BindingExpressionBase.cs
- Compiler.cs
- SecurityCredentialsManager.cs
- RegisteredScript.cs
- UrlMappingsModule.cs
- PartialClassGenerationTaskInternal.cs
- HGlobalSafeHandle.cs
- Binding.cs
- CodeParameterDeclarationExpressionCollection.cs
- _LocalDataStoreMgr.cs
- StructuredProperty.cs
- LicenseException.cs