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! Is anyone home? Does anyone answer here anymore?
Hello,
Yes this solution should work in 10.2
Here is the updated links:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinToolbars.v12.2~Infragistics.Win.UltraWinToolbars.RibbonGroupLayoutAlignment.html http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinToolbars.v12.2~Infragistics.Win.UltraWinToolbars.RibbonGroup~LayoutAlignment.html http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinToolbars.v12.2~Infragistics.Win.UltraWinToolbars.RibbonGroupLayoutAlignment.html
Please let me know if you have any further questions.
OK, I see where my misunderstanding is. However, there are 2 issues:
1) The LayoutAlignment and LayoutDirection settings only have bearing when the tool size is Normal. If the tool size is Large, these settings make no difference.
2) These setting only work for the tools within a group. What I need are settings for the groups within a tab, not for the tools within a group.
My situation is that I want to have an "Exit" group all the way on the right side of a tab, while all other functions are on the left side of the tab. But there might be plenty of space between the other functions and the "Exit" function. This is so that the user doesn't accidently click on Exit when he means to click on something else nearby.
I hope this clarifies what I'm looking for.
Can this be done?
Hello sch,
This is a limitation because of the Microsoft UX Interaction Guidelines for Ribbons: http://msdn.microsoft.com/en-us/library/windows/desktop/cc872782.aspx.
Despite that, I could log a new product idea for you, if you like.
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.