<Grid x:Name="LayoutRoot" removed="Transparent" ManipulationCompleted="ImageHolder_ManipulationCompleted"> <Image x:Name="ImageHolder" /> <TextBlock x:Name="MemoryUsage" /> </Grid>
ImageHolder.Source = null; if (i % 2 == 0) ImageHolder.Source = new BitmapImage(new Uri("image002.jpg", UriKind.Relative)); else ImageHolder.Source = new BitmapImage(new Uri("image001.jpg", UriKind.Relative)); i++; MemoryUsage.Text = "Device Total Memory = " + (long)DeviceExtendedProperties.GetValue("DeviceTotalMemory") / (1024 * 1024) + "\nCurrent Memory Usage = " + (long)DeviceExtendedProperties.GetValue("ApplicationCurrentMemoryUsage") / (1024 * 1024) + "\nPeak Memory Usage = " + (long)DeviceExtendedProperties.GetValue("ApplicationPeakMemoryUsage") / (1024 * 1024);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)