4.0 和4.5 app 和generic,xaml的问题
2024-10-18 19:26:46
4.0里面不支持Generic.xaml里面
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/test;component/Themes/Generic/ListBox.xaml" />
<ResourceDictionary Source="/test;component/Themes/Generic/Border.xaml" />
</ResourceDictionary.MergedDictionaries>
嵌套style
4.5里面可以使用。
可以在app.xaml
<Application x:Class="MCE.Gems.Shell.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<<ResourceDictionary Source="/test;component/Themes/Generic.xaml" /> </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
最新文章
- iOS UITableView 与 UITableViewController
- CozyRSS开发记录18-番外之Atom1.0的支持
- CSS3 media queries + jQuery实现响应式导航
- Create a “% Complete” Progress Bar with JS Link in SharePoint 2013
- Redhat系列Linux的基础命令
- 用Eclipse编写运行Java程序
- C/C++:拷贝构造函数
- libvirt基于安装
- 求数列的和 AC 杭电
- java打印菱形的简单方法
- <;jsp:directive.page>;标签
- XCode 6 出现 no identity found: Command /usr/bin/codesign failed with exit code 1 解决方法汇总
- python2.7学习记录之二
- java基础知识4--数组的常用方法(Array)
- sqoop的导入导出
- CSDN没有审核投诉的真实性直接删除博主上传的资源
- Linux关机总结
- [LeetCode&;Python] Problem 594. Longest Harmonious Subsequence
- LINUX学习 - 磁盘分区 + 开机自动挂载 + 性能测试
- 其他类想使用unittest的断言方法,就import unittest的框架,继承他,使用他里面的方法