每当我将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>
答案 0 :(得分:0)
我需要为PresentationFramework.Aero设置Copy Local属性为true。