c# - Insert a user interface in a DLL -
in project have implemented plugin manager:
https://code.msdn.microsoft.com/windowsdesktop/creating-a-simple-plugin-b6174b62
in way can add .dll file , make project more modular. wanna know if in 1 of these .dll plugin can add .xaml user interface, , use inside main project visualize content of xaml in main gui. in way can make app more modular not code library user interface.
thanks
if create project contains wpf usercontrol items, long expose items through dll interface can utilise them in project.
you should able verify doing following:
1) within 'dll' project make public class squarecontrol, usercontrol under hood, , canvas containing red square of fixed size.
2) within utilising project, reference dll.
3) within utilising project, in c# code somewhere create instance of squarecontrol, , check in debugger properties expect.
4) create usercontrol within utilising project, , open vs designer control. within empty grid has been created drop instance of squarecontrol, , should able see within designer. getting xaml namespace definitions can awkward first time around there's plenty of available that. fire application , see there.
Comments
Post a Comment