c# - Responsive Windows App Element -


is there xaml element automatically wrap new line sub elements don't have enough room on line?

what mean on wide screen i'll get:

box1 box2 box3 

and on narrow one:

box1 box2  box3 

without having listen events , fix code.

the comments mention variablesizedwrapgrid solution. can't figure out how make wrap.

you can use simple gridview it. if don't set height, should work charm.

<gridview name="xconcerts" itemssource="{x:bind artist.upcomingevents, mode=oneway}">     <gridview.itemtemplate>         <datatemplate x:datatype="songkick:eventext">             <border cornerradius="8" background="{themeresource themegrayhighcolorbrush}" opacity="0.8">                 <stackpanel margin="18,2">                     <textblock text="{x:bind fulldisplaydate, converter={staticresource formatstringtodatedayconverter}}" style="{themeresource themedateboldstyle}"/>                     <textblock text="{x:bind fulldisplaydate, converter={staticresource formatstringtodatemonthconverter}}" style="{themeresource themedateboldstyle}" margin="0,-4,0,0"/>                 </stackpanel>             </border>         </datatemplate>     </gridview.itemtemplate>     <gridview.itemcontainertransitions>         <transitioncollection>             <repositionthemetransition/>         </transitioncollection>     </gridview.itemcontainertransitions> </gridview> 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -