c# - AppBar shows half of content -
i use appbar application , appbarbuttons.
but abb shows half of title text , rest after opening ab. want hide text , show in case of opening ab.
<page.resources> <style targettype="appbarbutton" x:name="appbar"> <setter property="verticalalignment" value="top"/> <setter property="horizontalalignment" value="right"/> </style> </page.resources> <page.bottomappbar> <appbar issticky="true" closeddisplaymode="compact" background="lightgray" > <stackpanel orientation="horizontal" verticalalignment="top" flowdirection="righttoleft" > <appbarbutton x:name="mapastackpanel" label="mapa" icon="map" click="mapastackpanelclick" style="{staticresource appbar}" visibility="collapsed" /> <appbarbutton x:name="mojepolohastackpanel" label="moje poloha" icon="map" click="mojepolohaclick" style="{staticresource appbar}"/> <appbarbutton x:name="najdinejblizsistackpanel" label="najdi nejbližší" icon="map" click="najdinejblizsiclick" style="{staticresource appbar}"/> <appbarbutton x:name="navigujstackpanel" label="naviguj" icon="directions" click="navigujstackpanel_click" visibility="collapsed" style="{staticresource appbar}"/> </stackpanel> </appbar> </page.bottomappbar>
thank you, vt
use commandbar
instead of appbar
, due designed provide layout appbarbutton
, related command elements.
<page.bottomappbar> <commandbar issticky="true" closeddisplaymode="compact" background="lightgray" > <appbarbutton x:name="mapastackpanel" label="mapa" icon="map" click="mapastackpanelclick" style="{staticresource appbar}" visibility="collapsed" /> <appbarbutton x:name="mojepolohastackpanel" label="moje poloha" icon="map" click="mojepolohaclick" style="{staticresource appbar}"/> <appbarbutton x:name="najdinejblizsistackpanel" label="najdi nejbližší" icon="map" click="najdinejblizsiclick" style="{staticresource appbar}"/> <appbarbutton x:name="navigujstackpanel" label="naviguj" icon="directions" click="navigujstackpanel_click" visibility="collapsed" style="{staticresource appbar}"/> </commandbar> </page.bottomappbar>
Comments
Post a Comment