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?
Hello,
I have logged this behavior with our developers in our tracking system, with an issue ID of 35541. This development issue will be assigned to a developer to research for a fix, workaround, or other resolution. If some other resolution is reached, I will contact you with this information.
Sincerely,MatteoDeveloper Support EngineerInfragisticswww.infragistics.com/support
I don't see what in my description required a test app - it's pretty obvious where the problem was (i.e. UltraGroupBox.ResolveAppearance is marked as internal). I was asking for an alternative way to get at the font used...
Anyway, I was just getting on here to indicate that I found a way to get the actual font (found quite by accident), by getting the UIRoleResolved property from the UIElement that contains the caption of the group box. From that UIRole, I can call the public UIRole.ResolveAppearance method and get the font from that.
It would help, in order to resolve this matter, if you could send a small sample (in a compressed format) that shows the issue you indicated.