Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top