locked
Hide DataTemplates? RRS feed

  • Question

  • User372105 posted

    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

    Wednesday, July 31, 2019 11:52 AM

All replies

  • User176749 posted

    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>
    
    Wednesday, July 31, 2019 12:29 PM