Hi
I am new to creating ribbons.Is there any way to put two vertical ribbon button just in the middle of the panel? Is it possible to align Ribbon Buttons? Or changing properties of ribbon buttons like font size?
This is part of my code that creating two vertical buttons in a panel,but unfortunately they aren't align.
Dim ribbonbutton5 As New RibbonButton()
ribbonbutton5.Text = "Detail"
ribbonbutton5.ShowText = True
ribbonbutton5.ShowImage = True
ribbonbutton5.LargeImage = getBitmap(My.Resources.Rib_32)
ribbonbutton5.Image = getBitmap(My.Resources.Rib_16)
ribbonbutton5.Orientation = System.Windows.Controls.Orientation.Vertical
ribbonbutton5.Size = RibbonItemSize.Large
Dim ribbonbutton6 As New RibbonButton()
ribbonbutton6.Text = "Sections"
ribbonbutton6.ShowText = True
ribbonbutton6.ShowImage = True
ribbonbutton6.LargeImage = getBitmap(My.Resources.Rib_32)
ribbonbutton6.Image = getBitmap(My.Resources.Rib_16)
ribbonbutton6.Orientation = System.Windows.Controls.Orientation.Vertical
ribbonbutton6.Size = RibbonItemSize.Standard
Font size and Icon size are static I do believe.
Placement can be achieved just by using Rows that are native inside the CUI editor
Vertical, clustered, and horizontal:
Regards, Charles Shade
CSHADEDESIGN | AUTOCAD LT | LT-KB | DYNAMIC BLOCKS
Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘