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

Instantiating DataTemplate in XAML

$
0
0

May be silly question, but is it possible to instantiate DataTemplate class in XAML without ListView?
If I make it inside ContentView, it throws a XamlParseException: Cannot assign property "Content": type mismatch between "Xamarin.Forms.DataTemplate" and "Xamarin.Forms.View"
Is the only way to instantiate it in code?


Viewing all articles
Browse latest Browse all 75885

Trending Articles



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