4.0 和4.5 app 和generic,xaml的问题

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>
上一篇:UML类图详解_组合关系


下一篇:基于XMPP的即时通信系统的建立(一)— XMPP基础概念