I am working on an application that has a list of songs, and when they select a song it shows the sheet music for it. The sheet music is in png format and they are included in the app file as Content for build action.
When they select a song, I navigate to a new page just set the PanAndZoomImage source to that file using this code:
var contentFolder = await global::Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync(
var songAttachmentsFolder = await contentFolder.GetFolderAsync(
var file = await songAttachmentsFolder.GetFileAsync(item.URL);<br><br>BitmapImage bi =
image.Source = bi;
Each image file is only about 300KB.
The application crashes after loading between 3-6 times that control.
Changing the control from PanAndZoomImage to just the standard Image control it doesn't cause the crash.