【问题标题】:How to get type of the custom UserControl?如何获取自定义 UserControl 的类型?
【发布时间】:2012-09-17 14:23:01
【问题描述】:

我有一些自定义 WPF UserControl

它有这样的实现

public partial class CustomControl : UserControl, IMyPluginInterface

如何在其他应用程序中获取该 UserControl 的类型?

或者如何枚举汇编中的类型?

谢谢!

【问题讨论】:

标签: c# wpf


【解决方案1】:

试试这个:

Type myType = myCustomUserControl.GetType();

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-04-29
    • 2011-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-06
    • 2016-10-28
    相关资源
    最近更新 更多