문제

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