Loading a WPF control embedded in a DLL in runtime
问题 In my WPF project, I have a dll that contains several WPF UserControls. I would like, in runtime, to be able to check a parameter in the database (already implemented) and according to that parameter (which is a string) to be able to load a specific UserControl to my View. The UserControl is actually a Canvas, so it basically just places the correct Canvas on the View according to the database entry. I don't know if I was clear, so please ask me if you didn't understand the question. Thanks