Hi,
Infragistics brings a set of tool for the ribbon control, but is it also possible to create own tools. I want to create some kind of CheckBoxListTool. Is there a way to build own tools other than to use a ControlContainerTool and place a custom control into it.
Regards,
Michael
Michael,
It is possible to create your own tools; if you want a CheckBoxListTool, you will have to do just that. Take a look at this article in our online documentation that will give you an idea of where to start. There is also a sample that demonstrates how to do this; it is called the ToolProvider Component sample, and the article also tells you where to find it on your local machine when you have the Windows Forms samples installed.
Hope this helps,
~Kim~
Dear Kim,
thanks for your reply. I was out of office for a while so I noticed your post only now.
I carefully took a look at the sample you linked. But this does not solve what I want to do. The example is a simple subclassing of two tools, but nothing of the look and fill of either the subclassed ComboBoxTool or ButtonTool gets changed.
What I require is to create my own tool. But AFAIK the only way to implement that is to subclass from CustomContainerTool and do the rest on my own. Is that right?
You will probably have to derive from ToolBase in order to create a brand new tool. I just had a thought; does the StateButtonTool (displayed as a checkbox) not work for your situation? I know you originally said you were looking to create something like a CheckBoxListTool, however you can display a StateButtonTool as a checkbox, and you can create groups of mutually-exclusive StateButtons. If you this is what you are looking to do, this doc will help.