【发布时间】:2013-11-20 09:57:58
【问题描述】:
<ListView Name="ProductListView" Background="#AAFFFFFF" Margin="10,5,10,10" VerticalAlignment="Stretch" DataContext="product">
<ListView.Resources>
<Style TargetType="{x:Type GridViewColumnHeader}">
<EventSetter Event="Click" Handler="Sort"/> <!-- Sort is method of product object-->
</Style>
“产品”是具有列表视图项目的对象
我写了排序函数。
我想知道如何具体“排序”
到 Click 事件的处理程序..?
谢谢
【问题讨论】:
标签: c# wpf listview sorting binding