1

I've added resource to App.xaml like this:

<Application.Resources>      
      <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Generic.xaml"/>
           </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
</Application.Resources>

But when I start the application it crashed with unspecified error. And thoughts? Thanks!

4

1 回答 1

1

你的代码似乎没问题。在你的代码中--->

<ResourceDictionary Source="Generic.xaml"/>

可能有一些路径错误"Generic.xaml",你确定这个 Generic.xaml 文件在你的根目录中吗?或者应该是"someFolder/Generic.xaml"

于 2013-05-17T08:31:28.657 回答