locked
Windows 8.1 DataTemplate in xaml resource file, Button click event is not called. RRS feed

  • Question

  • Hi,

    In my app for Windows 8.1 I declared a data template inside a Resource file for a ListView in order

    to use it in more than one xaml pages. In the Data Template I have a button with che ClickEvent but this is not called

    in the code behind of the page.

    But If I declare the DataTemplate directly in the xaml page the click event is fired.

    How I can get the click event of the button keeping the datatemplate in the resource page?

    Thanks

    Daniele.

    Monday, August 5, 2013 7:17 AM

Answers

All replies