question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ThemeManager.ChangeTheme missing in v8.0.3

See original GitHub issue

The styles documentation says:

// now set the Green color scheme and dark base color
ThemeManager.ChangeTheme(Application.Current, "Dark.Green");

But there does not appear to be any ThemeManager static method anymore. There is an instanced method at ControlsEx.Theming.ThemeManager, but I’m getting a runtime error when I try this code:

var manager = new ControlzEx.Theming.ThemeManager();
manager.ChangeTheme(this, "Dark.Cobalt");

System.ArgumentNullException: 'Value cannot be null. (Parameter 'newTheme')'

It appears to have chosen this overload, despite the fact that I passed it a string for the second param: image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
batzencommented, Feb 28, 2021

Uh, i totally forgot to update the documentation after releasing v8.

You have to use ControlzEx.Theming.ThemeManager.Current to make it work. Will update the documentation as fast as i can.

0reactions
batzencommented, Feb 28, 2021

Changelog is also more clear about these changes now. Thanks for bringing this up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using MahApps IconPacks for BackstageTabItem's icon #782
Not sure if this is an issue or just something i'm missing. I'm using both Fluent.Ribbon and MahApps IconPacks for a project
Read more >
Index of Desktop Environments - Gentoo Forums
[SOLVED]" Page:1 · "missing icons in pcmanfm-qt" Page:1 ... USB drive after update" Page:1 · "[SOLVED] Gnome Keyring lost GPG support after update"...
Read more >
Untitled
Servers de minecraft 1.8 original, Hinigaran love song remix beat, Update form php ... Mx880 driver scanner, Piaui esporte clube facebook login, Lost...
Read more >
#ubuntu.txt
[00:17] <narimanmm> change idle time for auto dim anyone??? ... I am constantly missing IMs because I didn't see them [02:39] <carandraug> ...
Read more >
Videoder apk direct for pc
environmentObject(_:) for UrlConnect may be missing as an ancestor of this view ... android capture view and animation android change checkbox android check ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found