Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top