[英]How to get type of the custom UserControl?
I have got some custom WPF UserControl
. 我有一些自定义WPF
UserControl
。
And it has implementation like this one 它有像这样的实现
public partial class CustomControl : UserControl, IMyPluginInterface
How do I can get a type of that UserControl in other application? 如何在其他应用程序中获取该UserControl的类型?
Or how to enumerate types in assembly? 或者如何枚举程序集中的类型?
Thank you! 谢谢!
尝试这个:
Type myType = myCustomUserControl.GetType();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.