Currently, it is not possible to hide the ToolAreaRight. You can submit a feature request for this here: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
few years are passed since thi question was placed. Is it possible now?
Thanks
Gianni
Hello Gianni,
If you want to completely remove the right area of the application menu you will have to use a creation filter. For more information about this interface visit the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Win_Creation_Filter.html
When you set the UltraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaRight.MaxWidth to 1, you will still have a tiny bit of visible area from the right area, so you could remove it with the help of IUIElelmentCreationFilter implementation. Something like:
class CustomCreationFilter : IUIElementCreationFilter
{
public void AfterCreateChildElements(UIElement parent)
}
public bool BeforeCreateChildElements(UIElement parent)
if (parent is ApplicationMenuRightAreaUIElement)
ApplicationMenuLeftAreaUIElement left = parent.Parent.GetDescendant(typeof(ApplicationMenuLeftAreaUIElement)) as ApplicationMenuLeftAreaUIElement;
left.Rect = new System.Drawing.Rectangle(left.Rect.Location,
new System.Drawing.Size(left.Parent.Rect.Width - 1, left.Rect.Height));
return true;
return false;
I have attached a sample which shows how I have accomplished that, please run the sample and let me know if this is what you are looking for.
If you have any additional questions I will be happy to answer them.
Hi Dimitar!Your example was clear and perfectly fitting my needs.Thank you very much!