How to get current item in ItemTemplate in Xamarin Forms
<p>I set template for item <code>ListView</code> and assign list items</p>

<pre><code>listView.ItemTemplate = new DataTemplate(typeof(CustomVeggieCell));  
listView.ItemsSource = posts;
</code></pre>

<p>How to get <code>currentItem</code> element in <code>CustomVeggieCell</code>:</p>

<p>CustomVeggieCell.class:</p>

<pre><code>    public class CustomVeggieCell : ViewCell
   {
          public CustomVeggieCell(){
        // for example int count = currentItem.Images.Count;
        var postImage = new Image
        {
            Aspect = Aspect.AspectFill,
            HorizontalOptions = LayoutOptions.FillAndExpand,
            VerticalOptions = LayoutOptions.FillAndExpand
        };
        postImage.SetBinding(Image.SourceProperty, new Binding("Images[0]"));
        var postImage = new Image
        {
            Aspect = Aspect.AspectFill,
            HorizontalOptions = LayoutOptions.FillAndExpand,
            VerticalOptions = LayoutOptions.FillAndExpand
        };
        postImage.SetBinding(Image.SourceProperty, new Binding("Images[1]"));
        }
    }
</code></pre>

<p>I want to get amount of <code>Images</code> in <code>ItemTemplate</code>.  <code>Images</code> is simply a list of strings.</p>

<p>p.s. All value in <code>ItemTemplate</code> I get by binding. </p>