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>

 

 

posted @ 2013-06-29 10:08  法的空间  阅读(...)  评论(... 编辑 收藏