i have list view no columns , want 3 labels have 3 different horizontal alignments (left , center , right) when resizing window (and listview resizes too) the 1st label should on far left side , 2nd shall on center , 3rd on far right side of item
here xaml attempt
<listview.itemtemplate> <datatemplate> <wrappanel> <label content="l1" margin="0,10,0,0" verticalalignment="top" height="50" horizontalalignment="left" width="80"/> <label content="l2" margin="0,10,0,0" verticalalignment="top" height="50" horizontalalignment="center" width="80"/> <label content="l3" margin="0,10,0,0" verticalalignment="top" height="50" horizontalalignment="right" width="80"/> </wrappanel> </datatemplate> </listview.itemtemplate>
set horizontalcontentalignment property of listview stretch , should work. (default left) also, can place 3 labels in grid instead of wrappanel.
Comments
Post a Comment