locked
stop passing tapped event to gridview

    Question

  • <GridView ItemClick="foo">
      <GridView.ItemTemplate>
        <DataTemplate>
          <TextBlock Tapped="bar">
        <DataTemplate/>
      <GridView.ItemTemplate/>
    <GridView>
    void bar(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e)
    {
    e->Handled = true;
    }

    I have a TextBlock in each item of Gridview, when it is tapped, I don't want GridView's ItemClick to be called.
    In another word, in the code above I want after bar been called, foo does not get called.

    But foo still get called.

    Is this a bug or there is other way to do it?

    Thanks,

    Helin

    Friday, November 30, 2012 11:37 PM

All replies