Hi,
I have one ribbonTab in the UltraToolbarsManager. Inside the ribbonTab are four RibbonGroups. How can I right justify the last two ribbonGroups with the first two ribbonGroups left justified?
ribbon1 ribbon2(left justified) ribbon3 ribbon4 (this is right justified)
One way to accomplish this is to set the LayoutDirection of the groups to Horizontal and then set the LayoutAlignment of the groups to Near for left justified and Far for right justified.
For more information about these properties please see the following articles in the Infragistics documentation:
<http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.1/CLR2.0/html/Infragistics2.Win.UltraWinToolbars.v9.1~Infragistics.Win.UltraWinToolbars.RibbonGroup~LayoutAlignment.html>
<http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.1/CLR2.0/html/Infragistics2.Win.UltraWinToolbars.v9.1~Infragistics.Win.UltraWinToolbars.RibbonGroupLayoutAlignment.html>
<http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.1/CLR2.0/html/Infragistics2.Win.UltraWinToolbars.v9.1~Infragistics.Win.UltraWinToolbars.RibbonGroupToolLayoutDirection.html>
Does this solution still work in WinToolbars.v10.2?
I've tried it, but I don't get the desired results.
Also, the posted links don't work anymore.
Hello,
Thank you for your feedback.
Please do not hesitate to contact with us if you have any further questions.
Hristo
Sorry I didn't follow through. It's been really busy at my office recently and I haven't gotten around to it.
I quickly looked at the material and concluded that it would take me some time to analyze it and implement it, so I put it aside for now. When I get around to it I will let you know.
In the meantime, let's assume it solves the problem. Thanks a ton for your efforts.
I just wanted to know if you were able to solve your issue based on my suggestions or you still need help? Just let me know.
Thank you.
What you could do in this case is to use DrawFilter in order to prevent drawing of BackColor of the group and it will appears on the same way if it is hovered or not. More information about DrawFilter you could find on the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Win_Draw_Filter.html
Also I have created a small sample in order to demonstrate you this approach. I know that this is not the perfect variant but it is closest to your requirements.
I hope that this will helps you.
Well, if it's part of Microsoft's guidelines, who am I to argue.
What I've done to get around this is to create a new tool called "blank" which has no image and no Caption and set it's Visible to False. I've then created a new group, and added as many of these "blank" tools as needed. This allows me to set as much space as I need. It's not perfect, but it will do.
One thing I don't know how to do is to stop the highlighting of the group when the mouse hovers over this "blank" group. What properties do I have to set in order to make the whole group be unresponsive.
Thanks.