包含UserControl的C#类

时间:2020-03-19 10:59:38

标签: c# forms user-controls

我在C#中有一个类,该类具有一些UserControl属性。现在,我想在设计器中使用这些控件。这样可能吗?

public class Scope
{ 
    public SomeView1 View1 { get; private set; }
    public SomeView2 View2 { get; private set; }
}


public class SomeView1 : UserControl
{ 

}

public class SomeView2 : UserControl
{

}

0 个答案:

没有答案