Styling EtoComboBox from WPF/C#

@curtisw @JohnM

I’m working on our new Jewelry Design software, JewelBeetle. We use a “Dark Theme” in Rhino 7, but I’m having troubles styling some of the Rhino ETO controls in some of the Dialogs / Panels. We are a Windows Only application, so we only need the WPF controls to be styled.

I’ve searched and found various posts where Curtis and others made suggestions, but I’m challenged on this ComboBox.

I’m trying to theme the various dialogs to match our application. Unfortunately, we cannot have a combination of light and dark, because some of the colors in Rhino we’ve found have more than one use/way they are applied, so we are now trying to just apply the dark theme on individual ETO controls.

We are using code such as this to try to get the result we need:

But I’m having trouble knowing exactly how to style the items in the popup within DropDown/ComboBox.

Could either of you show me the code I would need to override the ComboBox/DropDown styling so that the Items in the List that are shown in the Popup are light text on dark background.

Adding this fixed the Selected Item, just need a fix for the popup now:
image

Thank you for any help you, or anyone else can be.

Jason

This was a bug that got fixed in v8.

In theory for v8 you should be able to control the UI and control colors without having to add a style (unless you just want to or are trying to change some other property of the control).

2 Likes

Sounds great! Can’t wait for the release!

If you happen to know any trick to styling the popup of values in the meantime, please let me know.

Thanks Travis!

It’s a hard task that you’ll probably just want to wait on v8 for. We did a ton of work in this area for v8 so we could have a dark mode on windows Rhino and better theming overall. The problem you’re going to run into in v7 is many of the panels and controls are either MFC/ETO/Winforms/WPF or some crazy mix of all of the above.

2 Likes

Yeah I’ve found that out. Sounds good, can’t wait…

1 Like