0
私はWPFプロジェクトとSharedProjectを1つのソリューションに用意しています。アセンブリ 'SharedProject1'はこのプロジェクトでは参照されません
SharedProjectにはResourceDictionaryファイルがあります。 WPFプロジェクトからSharedProjectへの参照を作成しました。
しかし、私はResourceDictionaryitを参照しようとすると、メッセージが表示されます:「国会 『SharedProject1は、』このプロジェクトによって参照されていません」。
<Window x:Class="WPF.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ietstesten"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/SharedProject1;component/Dictionary1.xaml" />
</Window.Resources>
<Grid>
</Grid>
はいなるほど確かに、それはあなたに感謝し、動作します。 – user7998549