How to change application accent color before any window show up? #981
Unanswered
SulfuricAcidH2SO4
asked this question in
Q&A
Replies: 2 comments
-
If i am correct you do this in app.xaml.cs: using Wpf.Ui.Appearance;
namespace YOURNAMESPACEHERE
{
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
ApplicationAccentColorManager.Apply(Colors.Red);
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
This appears to be a bug which I'm hoping will be resolved soon: #965 Can't be fixed by @GalaxyGaming2000's solution either. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basically as the title says.
I tried running in the startup of my App.xaml.cs
ApplicationAccentColorManager.Apply(Colors.Red, ApplicationTheme.Dark);
but it doesnt seem to work, it keeps reverting back to windows default accent color. Not sure when should I call it and why it doesn't change in the slightest....
Beta Was this translation helpful? Give feedback.
All reactions