询问者
应用的位图出现花屏现象

问题
全部回复
-
这个图片是怎么读取的? 运行多久会出现,一直出现还是偶尔? 不同机器会出现吗? 是否更换过显卡进行测试?
Bob Bao [MSFT]
MSDN Community Support | Feedback to us
-
我不是说你这个截图怎么 来的 ,我是说你的应用是怎么 去显示这个图片的?这个图片多大,源文件是怎么样的 ,你怎么将其读入应用并显示的 ?
Bob Bao [MSFT]
MSDN Community Support | Feedback to us
-
出现花屏的图片,图片有大有小,小的几K,大的也就几十K,都是PNG文件:
第一种,直接使用<Image />
<Image Margin="67,0,0,0" Stretch="None" Source="Images/MainLogo.png" />
第二种,使用了http://social.msdn.microsoft.com/Forums/zh-CN/metroappzhcn/thread/37fa7386-0406-4265-82c4-993ec7be458e 介绍的图片按钮。
<Controls:ImageButton> <Controls:ImageButton.NormalStateBrush> <ImageBrush Stretch="None" ImageSource="Images/btn_normal.png" /> </Controls:ImageButton.NormalStateBrush> <Controls:ImageButton.PressedStateBrush> <ImageBrush Stretch="None" ImageSource="Images/btn_selected.png" /> </Controls:ImageButton.PressedStateBrush> </Controls:ImageButton>
-
这样,你将页面的缓存关闭 NavigationCacheMode="Disabled",或者强制缓存 Enable, 再看看,
Bob Bao [MSFT]
MSDN Community Support | Feedback to us