mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
28 lines
868 B
C#
28 lines
868 B
C#
using System.Windows.Input;
|
|
using Microsoft.Surface;
|
|
using Microsoft.Surface.Presentation.Controls;
|
|
using Microsoft.Surface.Presentation.Input;
|
|
|
|
namespace SurfaceApplication
|
|
{
|
|
public partial class MainWindow : SurfaceWindow
|
|
{
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void MapTouchDown(object sender, TouchEventArgs e)
|
|
{
|
|
if (SurfaceEnvironment.IsSurfaceEnvironmentAvailable &&
|
|
!e.Device.GetIsFingerRecognized())
|
|
{
|
|
// If touch event is from a blob or tag, prevent touch capture by setting
|
|
// TouchEventArgs.Handled = true. Hence no manipulation will be started.
|
|
// See http://msdn.microsoft.com/en-us/library/ms754010#touch_and_manipulation
|
|
|
|
e.Handled = true;
|
|
}
|
|
}
|
|
}
|
|
} |