摘要:
关于在VS2008新建WPF类库时,有Custom Control和User Control两个选择。User Control类库会在工程中建立一个XAML文件及其绑定后台代码,前者以<UserControl开头,后者是一个派生自UserControl的类。Custom Control类库则在工程中创建派生自Control基类的CustomControl1控件,并在构造函数中为CustomControl1指定依赖属性DefaultStyleKeyProperty:Custom Control类库还会在Theme目录下生成Generic.xaml,这是一个以<ResourceDict 阅读全文
posted @ 2011-05-17 23:54 linFen 阅读(6610) 评论(2) 推荐(2) 编辑