I have noticed some performance issues when I am using the ScrollViewer and using a Rectangle with Stroke in the list items. When running on device(iOS 8.4) and profiling the allocations seems to grow overtime. The scroll also get’s slower and laggy. But if I remove the Rectangle it seems to be working fine. Maybe it’s the way I am implementing the Recatangle?
<App Theme="Basic" ClearColor="#eeeeeeff"> <!-- Resources !-->
<Font File="assets/fonts/Agenda Light.TTF" ux:Global="AgendaLight" />
<DockPanel>
<JavaScript>
var Observable = require("FuseJS/Observable");
var items = Observable();
for (var i = 1; i <= 20; i++)
items.add({label: "ITEM " + i});
module.exports = {
items: items
};
</JavaScript>
<StatusBarBackground DockPanel.Dock="Top" />
<ScrollViewer ClipToBounds="true">
<StackPanel Padding="20,20">
<Each Items="{items}">
<Panel Height="72" Margin="0,10" Background="#FFFFFF"> <Rectangle >
<Stroke Width="2">
<SolidColor Color="#CCCCCC"/>
</Stroke>
</Rectangle>
<Text Value="{label}" Font="AgendaLight" Alignment="CenterLeft" Padding="20" TextColor="#000000"/>
</Panel>
</Each>
</StackPanel>
</ScrollViewer>
</DockPanel>
</App>