public partial class MainWindow : Window
{
System.Reflection.AssemblyName aName;
System.Reflection.Assembly asm;
public MainWindow()
{
InitializeComponent();
aName = System.Reflection.AssemblyName.GetAssemblyName(
@"C:\Users\Adam\Documents\Visual Studio 2012\Projects\WPFResources\WPFResources\bin\Release\WPFResources.dll");
asm = System.Reflection.Assembly.Load(aName);
string[] manifest = asm.GetManifestResourceNames();
image1 =
}
这就是我不知道如何让它工作的地方。在 Winforms 中,我只需创建一个新位图,并在位图的构造函数中传入来自 DLL 的流及其清单位置...