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
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?
Hello Campbell ,
Yes you are right ,forum has some issue and thats why i was also not able to post the image and some time its moderation taking long time. Its a know issue and team is working on it .
Regarding providing the color to these system based button you will still use ButtonAppearance.BackColor property but need to set the UseOSThemes property on the UltraMessageBoxManager to False.
Please refer to this post Chris provided detail information,
https://es.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/45077/office-2007-theme-on-the-messagebox-control
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.
Hello Campbell,
Try to set the 'ButtonAreaAppearance' .Appearance would be like this. Also attached my demo sample for the reference.
8400.WindowsFormsApp29.zip