摘要:
概要:将所有的VM在加载到Application的Static Resource中,然后在View中用标签指定。实现:1)采用特性指定要添加到StaticResource中的对象view sourceprint?publicclassStaticResourceAttribute : Attribute { publicstringKey { get; set; } publicStaticResourceAttribute(stringkey) { this.Key = key; } }2)从当前的程序集中,把所有标记了StaticResourceAttribute的VM加载到AppReso 阅读全文
posted @ 2011-06-10 07:26 linFen 阅读(1063) 评论(0) 推荐(0) 编辑