2010-06-19 123 views
0

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

<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

我所需要的复制本地属性设置为true PresentationFramework.Aero。