WPF: How to create a new class of user control in runtime?

Posted by Entrase on Stack Overflow See other posts from Stack Overflow or by Entrase
Published on 2010-04-16T06:48:20Z Indexed on 2010/04/16 6:53 UTC
Read the original article Hit count: 228

Filed under:
|
|
|
|

Hello!

I need to define a user control in runtime and then instantiate it wherever I want. So it should not be just a "new UserControl()" (that will be an instance of a UserControl class) but the one I can use as a template. Should I use reflection to generate new type or is there a better way?

Thanks!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about runtime