1,將ListViewLayoutManagerLib 引入到專案中,名引入名字空間:xmlns:listViewMgr="clr-namespace: ListViewLayoutManagerLib;assembly=ListViewLayoutManagerLib"
2,在需要限定操作的ListView控制元件上啟用ListViewManager:listViewMgr:ListViewLayoutManager.Enabled="True"
3,在需要限定的列上制定限定值 listViewMgr:RangeColumn.MinWidth="50" > <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,將ListViewLayoutManagerLib 引入到專案中,名引入名字空間:xmlns:listViewMgr="clr-namespace: ListViewLayoutManagerLib;assembly=ListViewLayoutManagerLib"
2,在需要限定操作的ListView控制元件上啟用ListViewManager:listViewMgr:ListViewLayoutManager.Enabled="True"
3,在需要限定的列上制定限定值 listViewMgr:RangeColumn.MinWidth="50" > <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>