【发布时间】:2012-05-26 04:41:50
【问题描述】:
所以我有一个库来托管我的所有图像。这适用于我的 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">
【问题讨论】:
标签: c# wpf winforms class-library