1:
[Designer(typeof(GridControlControlDesigner))]
public partial class GridControl : UserControl
{
.
.
.
.
.
.
.
.
}
public class GridControlControlDesigner: FD.ControlDesigner
{
private DesignerVerbCollection actions;
public override DesignerVerbCollection Verbs {
get {
if (actions == null) {
actions = new DesignerVerbCollection();
actions.Add(new DesignerVerb("样式配置", new EventHandler(ChangeDisplay)));
}
return actions;
}
}
void ChangeDisplay(object sender, EventArgs e)
{
Form formt = new Form();
formt.ShowDialog();
//在弹出的界面配置属性
}
}