<!--hide the header at the top of each grid column-->
                            <ListView.Resources>
                                <Style TargetType="GridViewColumnHeader">
                                    <Setter Property="Visibility" Value="Collapsed" />
                                </Style>
                            </ListView.Resources>
                            <!--Remove highlight effect from ListViewItem-->
                            <ListView.ItemContainerStyle>
                                <Style TargetType="{x:Type ListViewItem}">
                                    <Setter Property="Background" Value="Transparent" />
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="{x:Type ListViewItem}">
                                                <Border BorderBrush="Transparent" 
                                                                    BorderThickness
="0" 
                                                                    Background
="{TemplateBinding Background}">
                                                    <GridViewRowPresenter 
                                                                    
HorizontalAlignment="Stretch" 
                                                                    VerticalAlignment
="{TemplateBinding VerticalContentAlignment}" 
                                                                    Width
="Auto" 
                                                                    Margin
="0,3,0,0" 
                                                                    Content
="{TemplateBinding Content}"/>
                                                </Border>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </ListView.ItemContainerStyle>
posted on 2015-06-11 11:08 Ying-er 阅读(1031) 评论(0)  编辑  收藏 所属分类: WPF

只有注册用户登录后才能发表评论。


网站导航:
 

填坑女侠  

<2015年6月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(4)

随笔分类

随笔档案

友情链接

各人常用链接

搜索

  •  

积分与排名

  • 积分 - 193082
  • 排名 - 296

最新评论

阅读排行榜