Question

I was attempting to change the color of the SystemTray, but for some reason I cannot get it to work correctly. I am not sure what I am doing wrong.

shell:SystemTray.IsVisible="True"
shell:SystemTray.BackgroundColor="Cyan"

Is this not correct?

Était-ce utile?

La solution

shell:SystemTray.IsVisible="True"
shell:SystemTray.BackgroundColor="Cyan"

Is the proper solution. I am using PhoneThemeManager from NuGet which automatically overrides device defaults to force either light or dark theme. Setting the SystemTray.Background using the above code is causing the Background to be white. Not sure how to fix this specific issue, but in all other cases the above code should work.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top