随笔分类 - wp7 programming bug
记录一些编程过程中的bug
摘要:情况一:build Action属性本地的图片的默认属性build Action 为Resource 造成的!build Action中Resource 生成的时候,会将图片生成到Dll中去,所以你的image控件就找不到了图片了。右键你的图片文件属性,然后修改build Action 为了 Content然后把Copy To OutPut 为了Always copy 就ok了思考一:另外设置Resource中的图片如何访问呢。当然是可以通过c#代码Application.GetResourceStream()方法来获取,具体可以参见以下代码需要加入两个名称空间using System.Win
阅读全文
摘要:情况一:可能阁下正在用调试中,请先停止调试,然后再关闭wp7的模拟器。 其实在开发当中如果不关闭模拟器的比较好。因为模拟器重启又会浪费一些时间。模拟器是独立,就让它放在那里好了。在 wp7练习一上面也能找到Closing the emulator stops the application and detaches the debugger. When you do this, the Visual Studio debugger detaches and display a message indicating that it has lost connection to the devic
阅读全文