I'm developing an application for the Sur40 with PixelSense2.0. I'm trying to capture the touch input but it keeps providing me the same error: No overload for method 'GetTouchPoint' takes 0 arguments
.
This is my code so far:
void SurfaceWindow1_Loaded(object sender, RoutedEventArgs e)
{
this.TouchDown += new EventHandler<TouchEventArgs>(SurfaceWindow1_TouchDown);
}
void SurfaceWindow1_TouchDown(object sender, TouchEventArgs e)
{
LoadAnimationControl2 ani1 = new LoadAnimationControl2();
ani1.Margin.Left = e.GetTouchPoint().Position.X;
ani1.Margin.Bottom = e.GetTouchPoint().Position.Y;
MainGrid.Children.Add(ani1);
}
Does anybody have a suggestion how to deal with this problem?
void SurfaceWindow1_TouchDown(object sender, TouchEventArgs e)
{
LoadAnimationControl2 ani1 = new LoadAnimationControl2();
ani1.Margin.Left = e.GetTouchPoint(this).Position.X;
ani1.Margin.Bottom = e.GetTouchPoint(this).Position.Y;
MainGrid.Children.Add(ani1);
}