これで、すべての画像をホストするライブラリができました。これは私の WinForms コントロールでは問題なく動作します。ただし、この同じクラス ライブラリのリソースを WPF で使用するのは困難です。
MyApp.Resources //Is my control library project.
Resources //Is the folder that contains all my images at the root of the project.
クラス ライブラリから WPF コントロール内の画像を参照するにはどうすればよいですか?
私が試したこと:
<ImageBrush ImageSource="/MyApp.Resources;Resources/manage.png" />
--UserControl プロパティ
Resources="pack://application:,,,/MyApp.Resources;Resources.resx">