title: Xamarin.Forms: Create instance of a DataTemplate
body: <p>I wan't to create a <code>ContentView</code> with a <code>BindableProperty</code> of type <code>DataTemplate</code>, so that when I use my custom <code>ContentView</code> i can customize how the elements should look like.</p>
  
  <p>But I wan't to arrange and create the contents in code, how can I create an instance from a DataTemplate? </p>
  
  <p>For example, in my custom view, I have a collection of objects, now for each object I want to create a view based on the set data template and set the binding context of that created view to that object.</p>