Hello,
I want to get the formatting toolbar (Justify, iltalic,Center, Bold) in the toolbar.
How can I do this ?
Thanks
To get a separator between to sets of tools, set InstanceProps.IsFirstInGroup to True on the first tool of the second group. Also, if your tools are in a RibbonGroup, you can set the InstanceProps.ButtonGroup of all tools in a group to the same value and they will have a border around them and always stay together when the ribbon is resized.
I would not recommend using ButtonTools for something like Bold if you want the button to appear pressed when boldness is active.
Mike,
Thanks for the reply.
How can I get the Bold,Italic and Underline look like in one container ?
I need to add separator between these controls and Alignment controls( Right,Left,Center). How can I do this ?
Can I use button tools for bold, iTalic and underline controls instead of statebutton tools ?
To get the Bold and Italic tools, you would use StateButtonTools on your toolbar. These tools have a Checked property and will have a pushed display when it is set to True.
For the Justify, Center, and other alignment tools, you would also want to use StateButtonTools. However, these tools are different in that only one can be checked at a time. To enforce this, you can add a new OptionSet to the UltraToolbarsManager's OptionSets collection. Then set that OptionSet instance on the OptionSet property of each alignment StateButtonTool.