Windows XP中的Windows 7样式

时间:2010-06-19 22:57:01

标签: c# wpf

每当我将Aero.NormalColor.xaml插入我的资源字典时,程序能够运行的唯一方法是通过调试模式。如果它被删除,我可以运行调试,没有。任何原因?这是我的App.xaml:

<Application x:Class="HTA.App"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         StartupUri="MainWindow.xaml">
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="ResourceDictionary/Miscellaneous.xaml"/>
            <ResourceDictionary Source="ResourceDictionary/ListControls.xaml"/>
            <ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

1 个答案:

答案 0 :(得分:0)

我需要为PresentationFramework.Aero设置Copy Local属性为true。