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
800
How to flow existing UIElements around custom elements?
posted

I've created a custom UIElement derived from the ButtonUIElementBase for creating right-aligned image buttons in the header of the UltraGroupBox, with different images for hot-tracking appearances.  The buttons are being added in the AfterCreateChildElements when the parent is the GroupBoxHeaderUIElement.  The buttons themselves are fully working, now I'm just having problems figuring out how to flow the other elements around the ones I'm adding.

The buttons are added to the right side of the header, and the text to the left of it needs to resize based on the new area remaining in the header.  The biggest problem is that when resized, the header will need to resize in height to fit the text and I just can't figure out how to do this.

Has anyone done something like this before? Or, have any idea how I may accomplish this?