码迷,mamicode.com
首页 > 其他好文 > 详细

[WPF] 将普通的Library工程,改造成WPF Custom Control 的Library

时间:2014-06-26 19:09:55      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:文件   cti   window   io   c   res   

1. 添加References

PresentationCore
PresentationFramework
System.Xaml
WindowsBase
2. 修改AssemblyInfo.xs
using System.Windows;

[assembly: System.Windows.ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]

3. 创建Themes文件夹,然后创建Generic.xaml

[WPF] 将普通的Library工程,改造成WPF Custom Control 的Library,布布扣,bubuko.com

[WPF] 将普通的Library工程,改造成WPF Custom Control 的Library

标签:文件   cti   window   io   c   res   

原文地址:http://www.cnblogs.com/mantian/p/3808478.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!