随笔分类 -  C#

摘要:1. Journal 的使用Journal 用于在 XAML 浏览器应用程序(XBAP)中维护历史访问页。删除前一访问页只需调当前 NavigationService 对象的 RemoveBackEntry() 即可;而增加一个访问页则复杂得多:1) 实现一个 CustomContentState 的派生类,每个对象对应一个要保存的访问页,其中数据结构用于维护这个历史访问页的数据,在构造的时候通过适当的参数传入。它必须标上 Serializable() 属性。在这个类里要重载一个 Replay 方法和一个 JournalEntryName。Replay 一般通过向构造时传入的页面回调提供数据, 阅读全文
posted @ 2009-11-18 22:40 quanben 阅读(249) 评论(0) 推荐(0)
摘要:i was writing a c# program this afternoon, it was no easy job. i found the interface mechanism was involved, which reminded me of the letter robbie had sent to me several weeks ago. it was about c# interface and looked terrifying, and again warned me that c# is not a trouble-free language despite al 阅读全文
posted @ 2009-02-22 14:48 quanben 阅读(169) 评论(0) 推荐(0)