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
- CodeGroup.cs
- IndexedString.cs
- XamlFrame.cs
- DataExpression.cs
- Select.cs
- RequestQueue.cs
- ClipboardData.cs
- WebControlAdapter.cs
- BasicExpandProvider.cs
- PrivilegeNotHeldException.cs
- COM2TypeInfoProcessor.cs
- RouteValueExpressionBuilder.cs
- PartialTrustValidationBehavior.cs
- BinaryNegotiation.cs
- PtsContext.cs
- SocketException.cs
- HashCodeCombiner.cs
- PropertyEmitter.cs
- FrugalMap.cs
- ListViewInsertEventArgs.cs
- CodeGroup.cs
- SQLInt16Storage.cs
- NavigationExpr.cs
- ApplicationManager.cs
- EditingScope.cs
- BackEase.cs
- ThicknessAnimation.cs
- CommonGetThemePartSize.cs
- Encoding.cs
- DataBoundLiteralControl.cs
- TdsParameterSetter.cs
- UnionExpr.cs
- ScrollChangedEventArgs.cs
- EventMappingSettings.cs
- Semaphore.cs
- HyperlinkAutomationPeer.cs
- BoolExpression.cs
- WebScriptClientGenerator.cs
- DescriptionCreator.cs
- WindowsListViewItem.cs
- DataControlFieldCell.cs
- GeneratedCodeAttribute.cs
- DbgCompiler.cs
- HyperLinkField.cs
- RightsManagementPermission.cs
- SqlSelectStatement.cs
- XsltLibrary.cs
- ConfigurationElementCollection.cs
- VirtualizedItemPattern.cs
- StorageModelBuildProvider.cs
- DecoderBestFitFallback.cs
- WebScriptMetadataMessageEncoderFactory.cs
- TextEndOfSegment.cs
- ProviderMetadata.cs
- KeyedQueue.cs
- IgnoreSection.cs
- Visual.cs
- StringCollectionMarkupSerializer.cs
- WindowsAltTab.cs
- CellParagraph.cs
- SymmetricAlgorithm.cs
- MethodExecutor.cs
- Process.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ComplexPropertyEntry.cs
- WebBaseEventKeyComparer.cs
- DecimalKeyFrameCollection.cs
- DesignerAttributeInfo.cs
- TypeDependencyAttribute.cs
- ExceptionUtil.cs
- CodeCompileUnit.cs
- WebPartDisplayModeCollection.cs
- BitStream.cs
- DataGridViewCellCollection.cs
- StrokeNode.cs
- PasswordTextContainer.cs
- DnsPermission.cs
- FieldAccessException.cs
- ToolStripTextBox.cs
- CompilationRelaxations.cs
- HtmlContainerControl.cs
- ToolStripManager.cs
- StringAttributeCollection.cs
- ArraySegment.cs
- DbModificationClause.cs
- SqlClientWrapperSmiStream.cs
- HandoffBehavior.cs
- SingleTagSectionHandler.cs
- SelectionRange.cs
- UpdatePanelTriggerCollection.cs
- AutomationProperty.cs
- FileRecordSequenceHelper.cs
- AssemblyBuilder.cs
- WmlLiteralTextAdapter.cs
- CssClassPropertyAttribute.cs
- FormattedText.cs
- EntityObject.cs
- PieceNameHelper.cs
- PageRequestManager.cs
- BitmapEffectInputData.cs