Saturday, 15 September 2012

xaml - TextBlock inside HubSection is not wrapping its content -



xaml - TextBlock inside HubSection is not wrapping its content -

i have textblock within scrollviewer resides within hubsection. "summary" binding has long text want wrap @ end of line doesn't wrap , hubsection stretches wide text within textblock. have tried set horizontalscrollmode disabled without success. tried putting textblock within grid instead of outside such wraps summary textblock. 1 time again didn't solve problem.

i can give width hubsection want application work in different resolutions without problem don't want that.

i have been trying find reply problem without success.

thanks answers in advance.

<hubsection x:uid="myhubsection" header="{binding path=displayname}" width="auto" headertemplate="{themeresource hubsectionheadertemplate}"> <datatemplate> <scrollviewer horizontalalignment="stretch" verticalalignment="stretch" > <grid x:name="mygrid" background="transparent"> <grid.rowdefinitions> <rowdefinition height="auto" minheight="40" /> <rowdefinition height="auto" minheight="40" /> </grid.rowdefinitions> <textblock grid.row="0" text ="{binding path=summary}" textwrapping="wrap" /> <textblock grid.row="1" textwrapping="wrap"> <run text="last edit date " /> <run text="{binding path=lasteditdate}" /> </textblock> </grid> </scrollviewer> </datatemplate> </hubsection>

xaml windows-store-apps windows-phone-8.1

No comments:

Post a Comment