Вопрос

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?

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top