Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1082
Is it possible to reduce the ribbon height after removing a group caption
posted

Hello Mike,

How i can reduce ribbon height after I removed ribbon group caption ?

You can write a "creationfilter"?

==================================

public void AfterCreateChildElements(Infragistics.Win.UIElement parent)

{

if (parent is RibbonGroupUIElement )

{

UIElement el = null;

foreach (UIElement element in parent.ChildElements)

{

if (element is RibbonGroupCaptionAreaUIElement)

{

el = element;

break;

}

}

if (el == null)

return;

parent.ChildElements.Remove(el);

//How i can reduce ribbon height after I removed ribbon group caption ?

}

}

===================================

public void AfterCreateChildElements(Infragistics.Win.UIElement parent)

{

if (parent is RibbonGroupUIElement )

{

UIElement el = null;

foreach (UIElement element in parent.ChildElements)

{

if (element is RibbonGroupCaptionAreaUIElement)

{

el = element;

break;

}

}

if (el == null)

return;

parent.ChildElements.Remove(el);

}

}