Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

XamlC errors on event callbacks in a DataTemplate, expected?

$
0
0

Normally doing this is fine in Xaml:

<controls:FooBar>
    <controls:FooBar.ItemTemplate>
            <DataTemplate>
            <Image>
                <Image.GestureRecognizers>
                    <TapGestureRecognizer Tapped="Element_Clicked"/>
                    </Image.GestureRecognizers>
            </Image>
        </DataTemplate>
    </controls:FooBar.ItemTemplate>
</controls:FooBar>

Unfortunately in XamlC I end up with compile failures complaining that the Element_Clicked does not exist. Is this expected?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>