当前位置:IT168首页 > 技术开发 > 概述
[收藏此页] [打印] [推荐] [评论]

如何限定ListView列宽度

责任编辑:nancy作者:ITPUB论坛   2008-07-03   
文本Tag: 微软 sql

【IT168技术文档】

  1,将ListViewLayoutManagerLib 引入到项目中,名引入名字空间:xmlns:listViewMgr="clr-namespace: ListViewLayoutManagerLib;assembly=ListViewLayoutManagerLib"

  2,在需要限定操作的ListView控件上启用ListViewManager:listViewMgr:ListViewLayoutManager.Enabled="True"

  3,在需要限定的列上制定限定值 listViewMgr:RangeColumn.MinWidth="50"
<ListView listViewMgr:ListViewLayoutManager.Enabled="True"> <ListView.View > <GridView AllowsColumnReorder="true"> <GridViewColumn listViewMgr:RangeColumn.MinWidth="50" Header="MinWidth100" Width="150"/> <GridViewColumn listViewMgr:RangeColumn.MinWidth="100" listViewMgr:RangeColumn.MaxWidth="200" Header="Width100~200" Width="150"/> <GridViewColumn Header="Normal" Width="150"/> </GridView> </ListView.View> </ListView>
上一页
1
下一页
收藏到: 添加到“百度搜藏”添加到“QQ书签”添加到“Google书签”添加到“Yahoo收藏”添加到“和讯网摘”
【内容导航】
本文欢迎转载,转载请注明:转载自IT168 [ http://www.it168.com/ ]
本文链接:http://tech.it168.com/d/2008-07-03/200807031034905.shtml
技术开发相关文章  
  • 暂无
友情推介