摘要:通过ObservableCollection 绑定到 DataGrid.1. 前台Xaml. 2. 后台CodeObservableCollection 如果是Struct的话,则不能正确的显示。原因未知,有空仔细研究一下。参考: http://...
阅读全文
11 2013 档案
摘要:Exception.Messagecontains only the message (doh) associated with the exception. Example:Object reference not set to an instance of an objectTheException.ToString()method will give a much more verbose output, containing the exception type, the message (from before), a stack trace, and all of these th
阅读全文
摘要:有时候不用 VS 调试,在 代码里面加入 Debug.Writeline(" Debug information!!"); 这个时候打开 debug view 就可以检测出输出了。另外有个前提是solution、或 project 必须是 debug 模式。在程序中,多数人会加入Debug、Trace等输出,当程序编译成Debug模式的时候,这些语句就会起作用,如果编译成Release模式,这些语句就会被自动去除。
阅读全文