首页 > 其他 > 详细

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

时间:2014-06-26 19:10:17      阅读:299      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!