Hide DataTemplates?

LeloLelo Member ✭✭✭
edited July 31 in Xamarin.Forms

Can't DataTemplates be moved to only be used internally by the controls?

They don't add anything - just create boilerplate.

<ListView>
    <ListView.ItemTemplate>
        <DataTemplate>
            <ViewCell />
        </DataTemplate>
    </ListView.ItemTemplate>
</ListView>

-->

<ListView>
    <ViewCell />
</ListView>

etc

Posts

  • batmacibatmaci DEMember ✭✭✭✭✭

    you can create a feature suggestion in github if you believe it is doable. but it should be at least

    <ListView>
        <ListView.ItemTemplate>      
                <ViewCell /> 
        </ListView.ItemTemplate>
    </ListView>
    
Sign In or Register to comment.