1

I am using Surface Toolkit for Windows Touch Beta. I have a problem to handle the TouchEvent of a ScatterViewItem.

In my code I create a ScatterViewItem and add it to the ScatterView. So far no problem. But I want to handle a Touch on this ScatterViewItem and it seems that a TouchEvent is never raised.

Here is a little code snippet:

ScatterViewItem item = new ScatterViewItem();
item.TouchDown += handle_TouchDown;
GlobalScatterView.Items.Add(Item);

private void handle_TouchDown(object sender, TouchEventArgs e)
{
   // do something
}

If I touch the ScatterViewItem, nothing happens.

Can anyone please give me a hint or a code snipet that solves my problem?

rlb.usa
  • 14,942
  • 16
  • 80
  • 128
Dennis Schneider
  • 71
  • 1
  • 1
  • 6

1 Answers1

0

Try this.

ScatterViewItem item=new ScatterViewItem();
item.TouchDown += new EventHandler<TouchEventArgs>(handle_TouchDown);
GlobalScatterView.Items.Add(Item);

private void handle_TouchDown(object sender, TouchEventArgs e)
{
   // do something
}
Ziyad Ahmad
  • 527
  • 2
  • 6
  • 18