We are using a IUIElementCreationFilter to amend the GroupBoxHeaderUIElement so that it is built up with customizable ImageUIElement and TextUIElement that are aligned an spaced to the developers requirements.
I was wondering if there is a way to have multiple colours on on the header? TextUIElement does not have a property for appearance - is there a way I can have 3 ChildElements off the GroupBoxHeaderUIElement that use the the default font and colour, and a final one that uses a bold font in red?
No thank you. That does the trick, but does mean a bit of a re-write for us :o(
Sorry my reply was delayed - only just got the e-mail notification for this one and not the one with the attachment (unless I deleted it by mistake).
Hi,
Let me know if you need any additional help.
Regards,
Stefaniya
I have modified your sample as I use DrawFilter instead of CreationFilter. I check if the draw element is GroupBoxHeaderUIElement and draw the strings with the desired font, color and placement.
Please check it and let me know if this is what you asked for.
I have attached a sample application that does a similar thing. If you can amend the sample project so that the Centre text is bold and in red, that would be great.
As a creation filter is involved it is hard for me to suggest you something without seeing what you have up to now. If it is possible, please upload a small sample representing your scenario, so I can check the options.