Open page bind to a list of images, close page. Open (same) page, bind to (different) list of images.
If user has say 5 or 6 albums... this would go over the 90MB requirement for Windows phone certification.
The memory seems to be stacking up (adding to it's previous high each time).
Is this normal? I would think that the Slide Viewer would release the memory once you exit the page.
OR is this not even the slide view's fault, is WindowsPhone itself caching the images in memory and counting it against my app memory usage? I would certainly like to try and keep image viewing available for the 256MB phones (and upcoming tango Memory limitations).
5.2.5 Memory Consumption |
An application must not exceed 90 MB of RAM usage, except on devices that have more than 256 MB of memory. You can use the following classes to query the amount of memory that is available on the device and modify the application behavior at runtime to take advantage of additional memory:
The DeviceTotalMemory value indicates the physical RAM size in bytes. This value is less than the actual amount of device memory. For an application to pass certification, Microsoft recommends that the value returned by ApplicationPeakMemoryUsage is less than 90 MB when DeviceTotalMemory is less than or equal to 256 MB. |
My Code...
<telerik:RadSlideView x:Name="slideView" Grid.Row="2" IsLoopingEnabled="False" ItemsSource="{Binding Thumbs}">
<telerik:RadSlideView.ItemTemplate>
<DataTemplate>
<ScrollViewer>
<StackPanel>
<Image Source="{Binding PreviewURL}" MaxWidth="480" MaxHeight="500" />
<TextBlock Text="{Binding Caption}" />
</StackPanel>
</ScrollViewer>
</DataTemplate>
</telerik:RadSlideView.ItemTemplate>
</telerik:RadSlideView>