For index = 0 To list.Count - 1Dim buttonTool As ButtonTool buttonTool = CreateButton(list(index).ToolbarBtnText.ToString(), list(index).ToolbarBtnText.ToString(), displayStyle) UltraToolbarsManager1.Tools.Add(buttonTool) UltraToolbarsManager1.Toolbars(0).Tools.Add(buttonTool) ElseIf list(index).ToolbarBtnText.ToString() = "Separator" Then Me.UltraToolbarsManager1.Toolbars(0).Tools(Me.UltraToolbarsManager1.Toolbars(0).Tools.Count - 1).InstanceProps.IsFirstInGroup = True End If
Next
am i missing something?
i got the problem it is with my style , it is getting added but due to style it is not getting displayed.
how i can set the style for separator , can u attach a sample where style is attached for separator
one more question , whether i can have more than one separator between two toolbuttons , for example
Generally we have following
ToolButton1 | ToolButton2, where | is separator
Can we achieve following
ToolButton1 || ToolButton2 or ToolButton1 ||| ToolButton2, as per setting done for one or more separators, if i set 4 separators then 4 separators should appear between two toolbuttons.
Hello ,
Style of the separator depends on the Style property of UltraToolbarsManager and currently you cannot add two separator on same place. So what I could suggest you to do in your case is to use IUIElementDrawFilter in order to draw the separator based on your needs. On the following link you will find more information about this interface:
http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=Win_Draw_Filter.html
Also I’ve implemented this suggestion for you, please see attached sample.
Please let me know if you have any further questions.
Thanks... , for the same , regarding style , could you tell me what type of role i will need to use for separator, like for toolbar item we use <style role="ToolbarItem">.