WinRT GridView But No GridViewColumn

妖精的绣舞 提交于 2019-12-08 04:32:13

问题


I do not have Windows 8 and Metro installed. My question is based on the documentation.

It appears DataGrid is gone but ListView and GridView remain. GridViewColumn is gone. I get the tile nature of Metro. My question is can GridView be configured for a row column presentation?

I have an app that for the most part would present great under Metro and would benefit from rights contracts. But there is one page were I need old school GridViewColumn like presentation. Thanks


回答1:


I'm not sure if I got your question. You want elements added to a ListView/GridView are displayed in a row? I use for the following code to display items in a horizontal orientation:

<GridView>
 <GridView.ItemsPanel>
  <ItemsPanelTemplate>
   <WrapGrid Orientation="Horizontal"/>
  </ItemsPanelTemplate>
 </GridView.ItemsPanel>
</GridView>


来源:https://stackoverflow.com/questions/10183294/winrt-gridview-but-no-gridviewcolumn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!