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 determine applied font on UltraGroupBox header?
posted

I'm adding some UIElements to an UltraGroupBox header which requires some resizing of the caption.  This all works great in my test application that doesn't use styling, but in the main application that uses app styling, measuring the caption text size using the group box's Font ends up with a size too small and my text is getting clipped.  So, what I really need to do is get the actual font that is used by the control when it is rendered.  I dug around for quite a while on this site and finally found this: http://forums.infragistics.com/forums/p/18502/67267.aspx#67267

That looked promising, but UltraGroupBox.ResolveAppearance is an internal method that cannot be called by my code.  I then fired up Reflector to see what happens inside of that internal method, I copied that code out and put it locally ... however, it uses a StyleUtils class to get the app styling information, but of course the StyleUtils class is also internal.

There must be some way to get to this Font, but I'm pretty stuck right now.  What other way can I use to find out this information?