title: Xamarin.Forms DataTemplateSelector doesnt work on iOS (Constructor not called)
body: <p>I am inflating a data template selector like so:</p>
  <pre><code>&lt;ContentPage.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;local:MyDataTemplateSelector x:Key=&quot;templateSelector&quot;&gt;&lt;/local:MyDataTemplateSelector&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/ContentPage.Resources&gt;
  
              &lt;Grid Grid.Row=&quot;0&quot;   &gt;
  
                  &lt;abstractions:CarouselViewControl VerticalOptions=&quot;Start&quot;  x:Name=&quot;carouselview&quot; ItemTemplate=&quot;{StaticResource templateSelector}&quot; /&gt;
  
              &lt;/Grid&gt;
  </code></pre>
  <p>The Code looks like this:</p>
  <pre><code>    public MyDataTemplateSelector()
      {
          Layout1 = new DataTemplate(typeof(CV_CarouselView_ShowPics));
          Layout2 = new DataTemplate(typeof(CV_VideoPlayer));
      }
  
      protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
      {
          FullAdType cell = (FullAdType)item;
  
          if(cell != null &amp;&amp; cell.hasVideo )
          {
  
              return Layout2; // get video layout 
  
          }
  
          else
              return Layout1;
  
      }
  </code></pre>
  <p>But neither of the data template selectors constructors is called on iOS but on Android, it works just fine.</p>
  <p>What is the issue here?</p>
  <p>Thank you</p>