MAUI-与WPF listView+ GridView?
我正在通过迁移现有的WPF应用程序来探索MAUI
。大多数功能似乎都可以移植到MAUI中,但是我不确定如何复制listView
/gridview
函数。
这是我在WPF应用程序中所拥有的:
<ListView
ItemsSource="{Binding Path=ViewModel.IotHubMessages}">
<ListView.View>
<GridView>
<GridViewColumn
Header="Correlation ID"
Width="100"
DisplayMemberBinding="{Binding CorrelationId}"
/>
...
<GridView>
</ListView.View>
</ListView>
我知道MAUI中有CollectionView
/listView
概念,但它们都没有提供与标头的类似表格UI。
问题
如何使用MAUI以适当的标头显示网格格式的数据?
I am exploring MAUI
by migrating an existing WPF application. Most of the functionality seems to be portable into MAUI however I am not sure how I can replicate the ListView
/ GridView
functionality.
Here is what I had in my WPF application:
<ListView
ItemsSource="{Binding Path=ViewModel.IotHubMessages}">
<ListView.View>
<GridView>
<GridViewColumn
Header="Correlation ID"
Width="100"
DisplayMemberBinding="{Binding CorrelationId}"
/>
...
<GridView>
</ListView.View>
</ListView>
I know there are CollectionView
/ ListView
concepts in MAUI but none of them provide a similar tabular UI with header.
Question
How can I display data in a Grid format with proper headers using MAUI?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论