Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompressStream.cs
- XamlToRtfWriter.cs
- MethodBuilder.cs
- TextRunTypographyProperties.cs
- ItemCheckedEvent.cs
- DependencyObjectPropertyDescriptor.cs
- UserPersonalizationStateInfo.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- UrlAuthFailedErrorFormatter.cs
- HandlerFactoryCache.cs
- Switch.cs
- ObjectQueryState.cs
- TransactionContextValidator.cs
- ServiceDesigner.cs
- DataGridViewColumnStateChangedEventArgs.cs
- Base64Decoder.cs
- IncomingWebResponseContext.cs
- OdbcInfoMessageEvent.cs
- OdbcDataAdapter.cs
- LastQueryOperator.cs
- Buffer.cs
- DataGridViewHitTestInfo.cs
- StyleConverter.cs
- HideDisabledControlAdapter.cs
- _LocalDataStoreMgr.cs
- FormViewUpdatedEventArgs.cs
- M3DUtil.cs
- RuntimeCompatibilityAttribute.cs
- HtmlInputButton.cs
- Sentence.cs
- QilValidationVisitor.cs
- Win32PrintDialog.cs
- Point4D.cs
- SqlClientWrapperSmiStreamChars.cs
- ConvertersCollection.cs
- DrawingAttributeSerializer.cs
- MultiView.cs
- HostedTcpTransportManager.cs
- ObjectStorage.cs
- ZipIOCentralDirectoryBlock.cs
- FamilyTypefaceCollection.cs
- IriParsingElement.cs
- UIElementIsland.cs
- SqlBulkCopy.cs
- WebPartUtil.cs
- PlatformNotSupportedException.cs
- ParserHooks.cs
- XmlSchemaDocumentation.cs
- TablePattern.cs
- UrlMappingsModule.cs
- TagElement.cs
- ToolStripDesignerUtils.cs
- EventProxy.cs
- Random.cs
- ScrollEventArgs.cs
- CommentGlyph.cs
- TimeoutTimer.cs
- IConvertible.cs
- DataDesignUtil.cs
- DataGridViewTopRowAccessibleObject.cs
- SharedPerformanceCounter.cs
- NameValueConfigurationCollection.cs
- ConfigurationValue.cs
- Nullable.cs
- HtmlUtf8RawTextWriter.cs
- WindowHelperService.cs
- PlatformNotSupportedException.cs
- StringUtil.cs
- BitmapEffectGroup.cs
- MouseGesture.cs
- WebPartsSection.cs
- LinkTarget.cs
- XmlExtensionFunction.cs
- SpecialNameAttribute.cs
- MaskDesignerDialog.cs
- DataGridViewCellStyleConverter.cs
- WebHeaderCollection.cs
- CorrelationManager.cs
- CancelEventArgs.cs
- ArrayExtension.cs
- TimeEnumHelper.cs
- Connector.xaml.cs
- SerialPinChanges.cs
- _UriTypeConverter.cs
- SiteMapDataSourceView.cs
- InkSerializer.cs
- XsdDataContractExporter.cs
- RewritingPass.cs
- InstanceKeyNotReadyException.cs
- ThreadSafeList.cs
- TargetParameterCountException.cs
- BooleanToVisibilityConverter.cs
- ActivityExecutorDelegateInfo.cs
- _emptywebproxy.cs
- Error.cs
- SecureEnvironment.cs
- ADMembershipUser.cs
- RegexCaptureCollection.cs
- XslException.cs
- PhysicalAddress.cs