0
我有一些自定義的WPF UserControl
。如何獲取自定義UserControl的類型?
而且它有實現這樣一個
public partial class CustomControl : UserControl, IMyPluginInterface
我怎樣可以得到一個類型的其他應用程序,用戶控件的?
或者如何枚舉程序集中的類型?
謝謝!
我有一些自定義的WPF UserControl
。如何獲取自定義UserControl的類型?
而且它有實現這樣一個
public partial class CustomControl : UserControl, IMyPluginInterface
我怎樣可以得到一個類型的其他應用程序,用戶控件的?
或者如何枚舉程序集中的類型?
謝謝!
試試這個:
Type myType = myCustomUserControl.GetType();
object.GetType()? –
'typeof(CustomControl)'? –
@voroninp我必須像裝配一樣加載它,我無法做到。 –