c# - Alignment issues using ItemsStackPanel as ItemsPanel for a Univeral Windows ListView -


in universal windows project have listview (lvwteams) itemspanel have changed itemsstackpanel orientation == horizontal. itemtemplate of lvwteams listview (lvwplayers). works expected, except lvwplayers appears in middle. want appear @ top, listview occupying whole area given itemspanel.

i had exact problem in wpf, , solved here

alignment issues using stackpanel in listview.itemspanel .

unfortunately, issue has reappeared since moving code universal windows project, wpf solution doesn't work. know how fix alignment issue?

here example xaml shows problem:

<grid x:name="root" background="{themeresource applicationpagebackgroundthemebrush}">      <grid.rowdefinitions>         <rowdefinition height="*"/>     </grid.rowdefinitions>      <listview x:name="lvwteams" grid.row="0"  verticalcontentalignment="stretch" horizontalcontentalignment="stretch">         <listviewitem>team 1</listviewitem>         <listviewitem>team 2</listviewitem>          <listview.itemspanel>             <itemspaneltemplate>                 <itemsstackpanel orientation="horizontal"></itemsstackpanel>             </itemspaneltemplate>         </listview.itemspanel>          <listview.itemtemplate>             <datatemplate>                 <listview x:name="lvwplayers" >                     <listviewitem>player 1</listviewitem>                     <listviewitem>player 2</listviewitem>                 </listview>             </datatemplate>         </listview.itemtemplate>     </listview> </grid> 

many in advance help.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -