先上代码:

 1 <Application x:Class="NetAnalysis.App"
 2              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 5              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 6             xmlns:l="clr-namespace:NetAnalysis.Common" 
 7              StartupUri="Pages/UserDefined/UserDefinedPage.xaml">
 8     <Application.Resources>
 9         <ResourceDictionary>
10             <ResourceDictionary.MergedDictionaries>     
11                 
12                 <ResourceDictionary Source="pack://application:,,,/DictionaryStyle;component/ControlStyle/Dictionaryapp_page.xaml"/>
13                 <ResourceDictionary Source="pack://application:,,,/DictionaryStyle;component/ControlStyle/DictionaryDarwSoftware_page.xaml"/>
14 
15             </ResourceDictionary.MergedDictionaries>
16         </ResourceDictionary>
17      
18     </Application.Resources>
19 </Application>

不是单独的项目,可以直接用Source="路径就可以了";其它的一定要引用生成的样式资源dll,不然会报找不到。

相关文章:

  • 2021-06-26
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-12-09
  • 2022-01-27
相关资源
相似解决方案