【发布时间】:2010-11-12 21:02:54
【问题描述】:
每当我创建新的 WPF 应用程序或 WPF 用户控件库时,AssemblyInfo.cs 文件包含以下属性:
[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)
)]
ThemeInfo 属性有什么用?如果我删除它会破坏任何东西吗?
【问题讨论】:
-
伙计,我很高兴我偶然发现了这个!由于我构建了一个自定义 BaseView 然后移动到另一个项目,我得到了一个空白/黑色窗口。添加这个修复它!
标签: c# wpf xaml themes assemblyinfo