.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to adopt AutoCAD theme for the a custom palette control?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
s_abeed
206 Views, 1 Reply

How to adopt AutoCAD theme for the a custom palette control?

I implemented a new palette control and want to know is there a magic way of applying darl or light theme to the new palette control?

1 REPLY 1
Message 2 of 2
ActivistInvestor
in reply to: s_abeed

The theme information can be accessed with:

 

 

 

/// Requires a reference to AdUiPalettes.dll

Autodesk.Windows.Themes.ThemeManager.Instance.PaletteSettings.CurrentTheme;

 

 

 

It's up to you to set the appropriate properties on UI elements (e.g., Foreground/Background color, etc.) to the values contained in the PaletteTheme object returned by this method. There's no 'easy button'.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report