天马行空  
I ---- Inject 投入 L ---- Loyal 忠诚 O ---- Observant 用心 V ---- Valiant 勇敢 E ---- Enjoyment 喜悦 Y ---- Yes 愿意 O ---- Obligation 责任

ListView中每一项的高度默认是相同的,除非超过其预定高度值,否则需要动点手脚。

VariableSizedListView 继承 ListView
然后重写
protected override void PrepareContainerForItemOverride(DependencyObject element,
            object item)
{
var localItem = item as HeadingItem;
var lvi = element as ListViewItem;
lvi.Height = 28;//这样就修改了高度
                        lvi.Margin = new Thickness(0, 20, 0, 0);//
}

posted on 2014-01-13 14:13  浅蓝  阅读(428)  评论(0编辑  收藏  举报