Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Possible to add a usercontrol to a ribbongroup?
posted

Ive tried using ControlContainerTool, but I cannot get the controls to appear. I can see the caption for the tool so I know it is there.

 Ex.

MyGroup.Tools.AddRange(new ToolBase[ {new MyCustomTool};

public class MyCustomTool : ControlContainerTool

{

public MyCustomTool (string key)
: base(key)

{

.SharedProps.Caption = "My Tool";

Init();

}

private void Init()

{

Control = new UltraGridBagLayoutPanel();

Control.Controls.Add(new UltraButton("My Button");

}

}

  • 175
    posted

    I got this working after all. Be sure If you extend a tool that you override the Clone method.