How to change background color of AppBar Windows Phone 8.1 -
this code xaml, want change background color of labels , buttons inside
<page.bottomappbar> <commandbar background="#ff3965ff"> <appbarbutton label="estação" icon="map" click="bar_localizar" foreground="white" borderbrush="white" background="white"/> <commandbar.secondarycommands> <appbarbutton label="traçar rotas" icon="add" click="bar_tracar_rotas" foreground="white"/> <appbartogglebutton label="tráfego" checked="togglebutton_onchecked" unchecked="togglebutton_onunchecked"/> <appbartogglebutton label="mapa aéreo" checked="mapa_checked" unchecked="mapa_unchecked"/> <appbarbutton label="voltar" icon="add" click="bar_voltar"/> <appbarbutton label="sair" icon="add" click="bar_sair"/> </commandbar.secondarycommands> </commandbar> </page.bottomappbar> i try use foreground="white" doesn't works!
the appbar system ui , not allowed change colors of individual buttons. if want can change backgrounf color of whole application bar (use background property) , color of buttons (use foreground property). should work:
<page.bottomappbar> <commandbar background="#ff3965ff" foreground="white"> <appbarbutton label="estação" icon="map" click="bar_localizar"/> </commandbar> </page.bottomappbar> remember perform suitable changes themes (light/dark/contrast) allowed app.
if need more customizable, have build own control mimic appbar.
Comments
Post a Comment