0
我有三个嵌套的网格,其中前两个有背景图像,大小为291 KB和185 KB。当我运行应用程序时,我发现我的应用程序正在使用大约130 MB的RAM。我调试应用程序,看看是什么原因导致如此巨大的内存消耗,并意识到,当我删除背景图像时,它减少到约25 MB。地铁应用程序,由背景图像造成的高内存使用率
我做错了什么?你可以在下面找到标记。
<Grid Style="{StaticResource LayoutRootStyle}">
<Grid.Background>
<ImageBrush ImageSource="Assets/Images/bubbleless_background.png" />
</Grid.Background>
<Grid>
<Grid.Background>
<ImageBrush ImageSource="Assets/Images/bubble_background_new.png" Stretch="None" AlignmentX="Left" AlignmentY="Top"/>
</Grid.Background>
</Grid>
</Grid>
背景图像的像素有多大? – 2012-08-02 09:18:46