自定义控件不能显示: ThemeInfoAttribute
来源:互联网 发布:为什么会用反射java 编辑:程序博客网 时间:2024/05/23 00:58
检查了所有情况,后来才发现没有在assembly中定义ThemeInfoAttribute。如果创建wpf项目,wizard会自动帮你生产ThemeInfo,我的project是通过class library生成的,所以必须自己定义。这就让我想起某位牛人的话:永远不要相信wizard生成的代码,至少你必须搞明白每一行wizard为你生成的代码。
[
assembly: 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)
)]
- 自定义控件不能显示: ThemeInfoAttribute
- WPF 自定义控件不能不服
- 自定义控件显示GIF图像
- 自定义控件显示省市选择器
- 自定义显示图片的控件
- VC 显示图片自定义控件
- 安卓中自定义控件显示样式
- 为什么自定义控件无法显示
- 自定义控件-----逐个显示文字
- 自定义页码显示控件PageNumberView
- android自定义控件显示小红点
- 自定义控件:等比例显示控件RatioLayout
- Android自定义控件中view不能隐藏
- TreeView控件在IE7不能正常显示
- TreeView控件不能显示图标的问题
- NGUI控件不能显示的问题
- Struts2 日历控件不能正常显示
- Redmine自定义问题状态不能显示
- 转一转 怎么样学习驱动步骤
- 程序员的心态
- 奇怪的校正结果
- MTK Memory dump
- sis中lucene 的应用
- 自定义控件不能显示: ThemeInfoAttribute
- FCKEditor控件的配置使用
- tapestry5.1本地化
- JavaScript弹出页面
- row_number()over函数的使用(转)
- 使用js代码在aspx页面动态显示当前日期和时间
- 在窗体加载时通过下面的代码为什么结束不了explorer进程???
- windows远程访问linux
- 文件下载代码,可以用迅雷进行下载(因为之前用过一段下载文件的代码,但是不能用迅雷下载,超级汗!!!)