多ResourceDictionary合併

  • 782
  • 0

摘要:多ResourceDictionary合併

怕忘記,記下備查。
<UserControl.Resources>
  <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
      <ResourceDictionary Source="aaa.xaml"/>
      <ResourceDictionary Source="/YourNameSpace;component/bbb.xaml"/>
    </ResourceDictionary.MergedDictionaries>
  </ResourceDictionary>
</UserControl.Resources>