Windows Phone 8.1 列表控件(2):分组数据
2014-05-24 13:23
316 查看
说到 List 控件,Windows Phone 8.1 上推荐使用的是 ListView 和 GridView。
而这两个控件实在太多东西可讲了,于是分成三篇来讲:
(1)基本
(2)分组数据
(3)多数据呈现
ListView 和 GridView 的最大差别就是:ListView 是一条条依序排列的,而 GridView 则是一块块依序排列的,因此 ListView 中的一项就会占据整整一行或者一列,而 GridView 的一项只会占据它应有的大小,一行或一列中可以放置多项。
而两者在其它方面上基本一致,因此下文只对 ListView 进行介绍,GridView 其实也一样的。
分组数据(GroupingData)
分组数据也就是将数据按首字母或自定义属性进行分组,然后用户就能通过点击首字母或自定义属性达到快速定位的目的:
Convertor
而这两个控件实在太多东西可讲了,于是分成三篇来讲:
(1)基本
(2)分组数据
(3)多数据呈现
ListView 和 GridView 的最大差别就是:ListView 是一条条依序排列的,而 GridView 则是一块块依序排列的,因此 ListView 中的一项就会占据整整一行或者一列,而 GridView 的一项只会占据它应有的大小,一行或一列中可以放置多项。
而两者在其它方面上基本一致,因此下文只对 ListView 进行介绍,GridView 其实也一样的。
分组数据(GroupingData)
分组数据也就是将数据按首字母或自定义属性进行分组,然后用户就能通过点击首字母或自定义属性达到快速定位的目的:
<Page x:Class="ListControls.GroupListViewPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:ListControls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:prim="using:Windows.UI.Xaml.Controls.Primitives" mc:Ignorable="d" DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Page.Resources> <prim:JumpListItemBackgroundConverter x:Key="BackgroundConverter"/> <prim:JumpListItemForegroundConverter x:Key="ForegroundConverter"/> </Page.Resources> </Page
Convertor
相关文章推荐
- Windows Phone 8.1 列表控件(3):多数据呈现
- Windows Phone 8.1 新特性 - 控件之列表选择控件
- 如何在 Windows Phone 8 的 LongListSelector 中显示分组列表内的数据
- Windows Phone 8.1 列表控件(1):基本
- Windows Phone 8.1中数据显示控件基石------ItemsControl
- Windows Phone 8.1 新特性 - 控件之列表选择控件
- VB.Net自己写的一个控件:ComboBox下拉列表中显示多列数据(可以绑定数据表)
- asp.net控件开发基础(19) --------数据列表绑定控件
- Discuz!NT控件剖析 之 DataGrid(数据列表) [原创: 附源码]
- 使用xml为列表控件绑定数据
- ASP.NET 数据列表控件的分页总结(一)-----自定义方法分页和PageDataSource类分页
- ASP.NET 数据列表控件的分页总结(二)---------使用存储过程分页
- GridView控件列表数据导出
- 数据绑定控件GridView展示商品列表
- 使用列表控件展示数据
- ASP.NET 数据列表控件的分页总结
- ASP.NET基础教程-DataList数据列表控件-实现DataList列表控件编辑功能
- ASP.NET 数据列表控件的分页总结(三)--------Asp.Net 可定制分页用户控件
- 显示新闻列表中的数据控件中加入新闻类别名称的列
- Discuz!NT控件剖析 之 DataGrid(数据列表) [原创: 附源码]