Working on a WP8.1 application in Windows Runtime.
I have a large UserControl defined inside the DataTemplate for a ListViews -
<DataTemplate x:Key="ListItemTemplate">
<listItems:ListItemControl />
</DataTemplate>
Which is used as so -
<ListView x:Name="List"
ItemTemplate="{ThemeResource ListItemTemplate}"
ShowsScrollingPlaceholders="True"
SelectionMode="None"
ContainerContentChanging="ListOnContainerContentChanging"
ScrollViewer.VerticalScrollBarVisibility="Auto" />
Will this have any negative performance impact compared with laying out all the items directly in the DataTemplate?
I've read that using a UserControl vs Templated Control has a big perf difference due to the UserControl xaml having to be processed each time. I'm unsure if in this case it will only have to be processed once as it is located in the DataTemplate.