Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Hide DataTemplates?

LeloLelo Member ✭✭✭
edited July 2019 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.