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
Post a Comment