This question is locked. New answers and comments are not allowed.
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:
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.
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(
"Content"
);
var songAttachmentsFolder = await contentFolder.GetFolderAsync(
"SongAttachments"
);
var file = await songAttachmentsFolder.GetFileAsync(item.URL);<br><br>BitmapImage bi =
new
BitmapImage();
bi.UriSource =
new
Uri(file.Path);
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.