Hi,
It seems I can style UltraMessageBoxInfo.ButtonAppearance ForeColor and BorderColor, but BackColor is completely ignored.
a) Can you fix this please, and
b) Can you give me a workaround
Thanks,Campbell
Also, it would be great if you could add DefaultButtonAppearance, so we can make the default button stand out from the rest.
Hello Campbell,
Try to set the 'ButtonAreaAppearance' .Appearance would be like this. Also attached my demo sample for the reference.
8400.WindowsFormsApp29.zip
Hi Divya,
That just sets the background panel colour for the buttons. I am working on a dark theme, and not being able to theme the buttons themselves makes them stand out horribly:
[]
Can you please raise this with the developers, and let me know if there is a workaround (perhaps using draw filters?)
PS. What is going on with your forum, it takes about 5 minutes to load a page?! And when I upload an image it keeps stripping it out. And if I try to link to an external site it says "The file or URL is not allowed to be inserted". Eventually got it to work by pasting the link of the URL into the text.
internal class MyDrawFilter : Infragistics.Win.IUIElementCreationFilter { internal MyDrawFilter() {
}
public bool BeforeCreateChildElements(Infragistics.Win.UIElement parent) { if (parent is MessageBoxButtonUIElement) { MessageBoxButtonUIElement button = (MessageBoxButtonUIElement)parent; //do stuff? } } }
Seems pasting code isn't working well, apologies for formatting, or lack thereof. Maybe this helps. Could also always use AppStyling or maybe FormManager -- I use themes on the message box extensively and haven't had any problem with altering button colors in 22.1.If this doesn't work could you post a small example of what you're trying to do that doesn't work?