Vote count:
0
I need to create .dll which utilizes WPF forms. I want to wrap this Custom.dll into COM object and then use via VBA-like script language. After some research, I've decided to use WPF User Control Library, as the best approach. But I've ran into two problems:
- For testing needs, I'm referencing and debugging my Custom.dll in ConsoleApplication project. But I also have to reference PresentationFramework, PresentationCore and WindowsBase libraries as well. This is inappropriate for my task, because later, I can't reference them in the VBA-like script (I have access only to COM objects via CreateObject()). It looks pretty weird to me, because all libraries are already referenced inside Custom.dll, why I have to do it again? It's not typical for .dll, isn't it?
- Even when I'm referencing these libraries, and trying to create instance of my Custom.UserControl1 nothing appears on screen: no runtime errors happen, everything looks just fine, InitializeComponent function run perfectly, but after that - nothing shows up.
I've tried to create another similar project, thinking it might be some random-half-magic stuff, but it didn't help too.
asked 1 min ago
WPF User control library - form doesn't show up
Aucun commentaire:
Enregistrer un commentaire