c# - Image control not shown in Pivot Item -
i trying put controls inside grid
, situated in pivot item. have added far shown, picture control default picture not visible.
i can see picture control loaded default pic in design editor, not when application run.
when application launched, button , ellipse visible.
here xaml code:
<phone:pivot horizontalalignment="left" height="768" grid.row="1" title="pivot" verticalalignment="top" width="480"> <phone:pivotitem cachemode="{x:null}" header="home" margin="10,10,-235,-578"> <grid horizontalalignment="left" height="576" margin="10,10,0,0" verticalalignment="top" width="438"> <image source="images/defaultprofilepic.jpg" horizontalalignment="left" height="100" margin="32,35,0,0" verticalalignment="top" width="100"/> <button content="button" horizontalalignment="left" margin="32,183,0,0" verticalalignment="top"/> <ellipse fill="#fff4f4f5" horizontalalignment="left" height="100" margin="32,292,0,0" stroke="black" verticalalignment="top" width="100"/> </grid> </phone:pivotitem> <phone:pivotitem cachemode="{x:null}" header="search"> <grid/> </phone:pivotitem> <phone:pivotitem cachemode="{x:null}" header="my profile"> <grid/> </phone:pivotitem> </phone:pivot>
if images
folder inside assets
folder try this.
<image source="/assets/images/defaultprofilepic.jpg" horizontalalignment="left" height="100" margin="32,35,0,0" verticalalignment="top" width="100"/>
or if images
child folder of project assets
, use this
<image source="/images/defaultprofilepic.jpg" horizontalalignment="left" height="100" margin="32,35,0,0" verticalalignment="top" width="100"/>
Comments
Post a Comment