- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
Solved! Go to Solution.
Link copied
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?
Solved! Go to Solution.
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'.